opencard.opt.iso.fs
Class CardFileAppID
java.lang.Object
opencard.opt.iso.fs.CardFilePathComponent
opencard.opt.iso.fs.CardFileAppID
- All Implemented Interfaces:
- OpenCardConstants
- Direct Known Subclasses:
- CardFilePartialAppID
public class CardFileAppID
- extends CardFilePathComponent
- implements OpenCardConstants
CardFileAppID contains a single CardFilePath
component, an application ID.
- Version:
- $Id: CardFileAppID.java,v 1.1.1.1 1999/10/05 15:08:47 damke Exp $
- Author:
- Dirk Husemann (hud@zurich.ibm.com)
Fields inherited from interface opencard.core.OpenCardConstants |
APPID_ENCODING, CARD_SERVICE_CACHEPATH, CARD_SERVICE_CACHETIME, CARD_SERVICE_CHECK, CARD_SERVICE_LISTER_CLASS, CARD_SERVICE_REGISTRY_TAG, CARD_SERVICE_URL, CARD_TERMINAL_REGISTRY_TAG, DEFAULT_OPENCARD_LOADER_CLASSNAME, OPENCARD_DOTPROPERTIES, OPENCARD_PROPERTIES, OPENCARD_PROPERTY, SMARTCARD_REMOVED |
Constructor Summary |
CardFileAppID(java.lang.String comp)
Instantiate an application ID path component. |
Method Summary |
boolean |
equals(java.lang.Object comp)
Compare two application ID components. |
int |
hashCode()
Return a hashcode for this application ID |
byte[] |
toByteArray()
Return a byte array representing this application ID. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CardFileAppID
public CardFileAppID(java.lang.String comp)
- Instantiate an application ID path component.
- Parameters:
comp
- The String containing the path component.
toByteArray
public byte[] toByteArray()
- Return a byte array representing this application ID.
- Returns:
- A byte array containing the application ID.
- Throws:
CardIOException
- Thrown when we cannot extract the bytes from the
component using the ISO 8859-1 encoding.
equals
public boolean equals(java.lang.Object comp)
- Compare two application ID components.
- Overrides:
equals
in class CardFilePathComponent
- Parameters:
comp
- An object of type CardFileAppID.
- Returns:
- True if comp is of type CardFileAppID
and describes the same path component.
hashCode
public int hashCode()
- Return a hashcode for this application ID
- Overrides:
hashCode
in class java.lang.Object