opencard.opt.security
Class KeyFile
java.lang.Object
|
+--opencard.opt.security.KeyFile
- Direct Known Subclasses:
- PrivateKeyFile, PublicKeyFile, SecretKeyFile
- public abstract class KeyFile
- extends java.lang.Object
- implements KeyRef
Base class for references to keys stored on a smart card in an ISO file.
Identifies the key by specifying the directory the key is contained in
as well as a key number.
This class is abstract. To reference keys, use one of the
derived classes PublicKeyFile, PrivateKeyFile,
or SecretKeyFile.
- See Also:
- Serialized Form
Constructor Summary |
protected |
KeyFile(CardFilePath directory,
int keyNr)
Constructor from directory path and key number |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
KeyFile
protected KeyFile(CardFilePath directory,
int keyNr)
- Constructor from directory path and key number
- Parameters:
path
- opencard.opt.iso.fs.CardFilePathkeyNr
- int
getAlgorithm
public java.lang.String getAlgorithm()
- adhere to interface java.security.Key
getDirectory
public CardFilePath getDirectory()
- get the directory containing the key
getEncoded
public byte[] getEncoded()
- adhere to interface java.security.Key
getFormat
public java.lang.String getFormat()
- adhere to interface java.security.Key
getKeyNumber
public int getKeyNumber()
- get the number of the key