Package opencard.opt.applet
Class AppletInfo
- java.lang.Object
-
- opencard.opt.applet.AppletInfo
-
public class AppletInfo extends java.lang.ObjectThe AppletInfo encapsulates the descriptive information about an applet stored on a smart card (e.g. security Domain or AppletID).AppletInfo is a generic class which is card type independent. It can be subclassed to add more specific informations which are specific for a card type (e.g. for JavaCard or EMV compliant card).
- Since:
- OCF1.2
- Author:
- Thomas Stober (tstober@de.ibm.com), Reto Hermann (rhe@zurich.ibm.com), Christophe.Muller@research.gemplus.com
-
-
Constructor Summary
Constructors Constructor Description AppletInfo()Creates a new AppletInfo instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppletIDgetAppletID()Get the applet identifier (AppletID).java.lang.ObjectgetData()Get the applet data.SecurityDomaingetDomain()Get the applet security domainjava.lang.StringgetLabel()Get the applet label.voidsetAppletID(AppletID _aid)Set the applet identifier (AppletID).voidsetData(java.lang.Object _data)Set the applet data.voidsetDomain(SecurityDomain _domain)Set the applet security domainvoidsetLabel(java.lang.String _label)Set the applet label.java.lang.StringtoString()Return the applet information as a string.
-
-
-
Field Detail
-
label
protected java.lang.String label
Applet label
-
aid
protected AppletID aid
Applet ID
-
domain
protected SecurityDomain domain
Security Domain (e.g. Applet Path on ISO cards or applets on JavaCards)
-
data
protected java.lang.Object data
Free data
-
-
Method Detail
-
getAppletID
public AppletID getAppletID()
Get the applet identifier (AppletID).- Returns:
- An Applet ID.
-
getData
public java.lang.Object getData()
Get the applet data.- Returns:
- A data object related to the applet.
-
getDomain
public SecurityDomain getDomain()
Get the applet security domain- Returns:
- A SecurityDomain
-
getLabel
public java.lang.String getLabel()
Get the applet label.- Returns:
- A label string describing the applet.
-
setAppletID
public void setAppletID(AppletID _aid)
Set the applet identifier (AppletID).- Parameters:
_aid- An Applet ID.
-
setData
public void setData(java.lang.Object _data)
Set the applet data.
-
setDomain
public void setDomain(SecurityDomain _domain)
Set the applet security domain- Parameters:
_domain- A SecurityDomain
-
setLabel
public void setLabel(java.lang.String _label)
Set the applet label.
-
toString
public java.lang.String toString()
Return the applet information as a string.- Overrides:
toStringin classjava.lang.Object- Returns:
- The AppletInfo as a string.
-
-