|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopencard.opt.security.KeyFile
public abstract class KeyFile
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.
| Field Summary |
|---|
| Fields inherited from interface java.security.Key |
|---|
serialVersionUID |
| Constructor Summary | |
|---|---|
protected |
KeyFile(CardFilePath directory,
int keyNr)
Constructor from directory path and key number |
| Method Summary | |
|---|---|
java.lang.String |
getAlgorithm()
adhere to interface java.security.Key |
CardFilePath |
getDirectory()
get the directory containing the key |
byte[] |
getEncoded()
adhere to interface java.security.Key |
java.lang.String |
getFormat()
adhere to interface java.security.Key |
int |
getKeyNumber()
get the number of the key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected KeyFile(CardFilePath directory,
int keyNr)
path - opencard.opt.iso.fs.CardFilePathkeyNr - int| Method Detail |
|---|
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic CardFilePath getDirectory()
public byte[] getEncoded()
getEncoded in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic int getKeyNumber()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||