Class SmartCardHSMECPrivateKeySpec
- java.lang.Object
-
- de.cardcontact.opencard.service.smartcardhsm.SmartCardHSMKeySpec
-
- de.cardcontact.opencard.service.smartcardhsm.SmartCardHSMPrivateKeySpec
-
- de.cardcontact.opencard.service.smartcardhsm.SmartCardHSMECPrivateKeySpec
-
- All Implemented Interfaces:
java.security.spec.KeySpec
public class SmartCardHSMECPrivateKeySpec extends SmartCardHSMPrivateKeySpec
This class contains the data for EC key pair generation.- Author:
- lew
-
-
Field Summary
Fields Modifier and Type Field Description static byte[]TA_ECDSA_SHA_256
-
Constructor Summary
Constructors Constructor Description SmartCardHSMECPrivateKeySpec(java.lang.String car, java.lang.String chr, java.security.spec.AlgorithmParameterSpec params)SmartCardHSMECCPrivateKeySpec constructorSmartCardHSMECPrivateKeySpec(java.security.spec.AlgorithmParameterSpec params)SmartCardHSMECCPrivateKeySpec constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConstructedTLVencodeKeyParams()byte[]getBasePointG()java.security.spec.ECParameterSpecgetECParameterSpec()intgetKeySize()-
Methods inherited from class de.cardcontact.opencard.service.smartcardhsm.SmartCardHSMPrivateKeySpec
encodeSpecParams, getAlgorithm, getCHR, setAlgorithm, setCAR, setCHR, setOuterCAR, setStorePublicKey, storePublicKey, unsignedBigIntegerToByteArray
-
Methods inherited from class de.cardcontact.opencard.service.smartcardhsm.SmartCardHSMKeySpec
encodeKeyParams, getAlgorithmList, getCData, getKeyDomain, getKeyUseCounter, hasAlgorithmList, hasKeyDomain, hasKeyUseCounter, setAlgorithmList, setKeyDomain, setKeyUseCounter
-
-
-
-
Constructor Detail
-
SmartCardHSMECPrivateKeySpec
public SmartCardHSMECPrivateKeySpec(java.lang.String car, java.lang.String chr, java.security.spec.AlgorithmParameterSpec params)SmartCardHSMECCPrivateKeySpec constructor- Parameters:
car- The Certificate Authority Referencechr- The Certificate Holder Referenceparams- The domain parameter
-
SmartCardHSMECPrivateKeySpec
public SmartCardHSMECPrivateKeySpec(java.security.spec.AlgorithmParameterSpec params)
SmartCardHSMECCPrivateKeySpec constructor- Parameters:
params- The domain parameter
-
-
Method Detail
-
getECParameterSpec
public java.security.spec.ECParameterSpec getECParameterSpec()
- Returns:
- The domain parameter
-
getKeySize
public int getKeySize()
- Returns:
- The key size
-
encodeKeyParams
protected ConstructedTLV encodeKeyParams()
- Specified by:
encodeKeyParamsin classSmartCardHSMPrivateKeySpec
-
getBasePointG
public byte[] getBasePointG() throws java.io.IOException- Returns:
- The encoded Base Point G
- Throws:
java.io.IOException
-
-