Class KeyDescription
- java.lang.Object
-
- de.cardcontact.opencard.service.smartcardhsm.KeyDescription
-
public class KeyDescription extends java.lang.Object
PKCS#15 key description for RSA, EC and AES keys- Author:
- lew
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KeyDescription.KeyTypes
-
Constructor Summary
Constructors Constructor Description KeyDescription(byte[] prkd)
KeyDescription(byte[] keyid, java.lang.String label, int size, KeyDescription.KeyTypes type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getEncoded()
byte[]
getKeyID()
java.lang.String
getLabel()
int
getSize()
java.lang.String
getTranslatedLabel()
Return the label with placeholders replaced by actual valuesKeyDescription.KeyTypes
getType()
void
setKeyRef(byte ref)
-
-
-
Constructor Detail
-
KeyDescription
public KeyDescription(byte[] keyid, java.lang.String label, int size, KeyDescription.KeyTypes type)
-
KeyDescription
public KeyDescription(byte[] prkd) throws TLVEncodingException
- Throws:
TLVEncodingException
-
-
Method Detail
-
getKeyID
public byte[] getKeyID()
-
getLabel
public java.lang.String getLabel()
-
setKeyRef
public void setKeyRef(byte ref)
-
getTranslatedLabel
public java.lang.String getTranslatedLabel()
Return the label with placeholders replaced by actual values- Returns:
-
getSize
public int getSize()
-
getType
public KeyDescription.KeyTypes getType()
-
getEncoded
public byte[] getEncoded()
-
-