Class KeyDescription
- java.lang.Object
-
- de.cardcontact.opencard.service.smartcardhsm.KeyDescription
-
public class KeyDescription extends java.lang.ObjectPKCS#15 key description for RSA, EC and AES keys- Author:
- lew
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyDescription.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.StringgetLabel()intgetSize()java.lang.StringgetTranslatedLabel()Return the label with placeholders replaced by actual valuesKeyDescription.KeyTypesgetType()voidsetKeyRef(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()
-
-