Class SmartCardHSMKeySpec
- java.lang.Object
 - 
- de.cardcontact.opencard.service.smartcardhsm.SmartCardHSMKeySpec
 
 
- 
- All Implemented Interfaces:
 java.security.spec.KeySpec
- Direct Known Subclasses:
 SmartCardHSMPrivateKeySpec,SmartCardHSMSecretKeySpec
public abstract class SmartCardHSMKeySpec extends java.lang.Object implements java.security.spec.KeySpecBase class for all key specifications- Author:
 - asc
 
 
- 
- 
Constructor Summary
Constructors Constructor Description SmartCardHSMKeySpec() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidencodeKeyParams(Sequence cdata)Encode key parameterprotected voidencodeSpecParams(Sequence cdata)Encode key specification for asymmetric keys Overwritten in derived classesbyte[]getAlgorithmList()byte[]getCData()Return the encoded CDATA for GENERATE ASYMMETRIC KEY PAIR oder GENERATE KEY APDUKeyDomaingetKeyDomain()longgetKeyUseCounter()booleanhasAlgorithmList()booleanhasKeyDomain()booleanhasKeyUseCounter()voidsetAlgorithmList(byte[] list)voidsetKeyDomain(KeyDomain keyDomain)voidsetKeyUseCounter(int counter) 
 - 
 
- 
- 
Method Detail
- 
hasKeyUseCounter
public boolean hasKeyUseCounter()
 
- 
setKeyUseCounter
public void setKeyUseCounter(int counter)
 
- 
getKeyUseCounter
public long getKeyUseCounter()
 
- 
hasAlgorithmList
public boolean hasAlgorithmList()
 
- 
setAlgorithmList
public void setAlgorithmList(byte[] list)
 
- 
getAlgorithmList
public byte[] getAlgorithmList()
 
- 
hasKeyDomain
public boolean hasKeyDomain()
 
- 
setKeyDomain
public void setKeyDomain(KeyDomain keyDomain)
 
- 
getKeyDomain
public KeyDomain getKeyDomain()
 
- 
encodeSpecParams
protected void encodeSpecParams(Sequence cdata)
Encode key specification for asymmetric keys Overwritten in derived classes- Parameters:
 cdata- the TLV structure to which objects are added
 
- 
encodeKeyParams
protected void encodeKeyParams(Sequence cdata)
Encode key parameter- Parameters:
 cdata- the TLV structure to which objects are added
 
- 
getCData
public byte[] getCData()
Return the encoded CDATA for GENERATE ASYMMETRIC KEY PAIR oder GENERATE KEY APDU- Returns:
 - the encoded TLV structure
 
 
 - 
 
 -