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.KeySpec
Base 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 void
encodeKeyParams(Sequence cdata)
Encode key parameterprotected void
encodeSpecParams(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 APDUKeyDomain
getKeyDomain()
long
getKeyUseCounter()
boolean
hasAlgorithmList()
boolean
hasKeyDomain()
boolean
hasKeyUseCounter()
void
setAlgorithmList(byte[] list)
void
setKeyDomain(KeyDomain keyDomain)
void
setKeyUseCounter(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
-
-