Class SmartCardHSMRSAPrivateKeySpec
- java.lang.Object
-
- de.cardcontact.opencard.service.smartcardhsm.SmartCardHSMKeySpec
-
- de.cardcontact.opencard.service.smartcardhsm.SmartCardHSMPrivateKeySpec
-
- de.cardcontact.opencard.service.smartcardhsm.SmartCardHSMRSAPrivateKeySpec
-
- All Implemented Interfaces:
java.security.spec.KeySpec
public class SmartCardHSMRSAPrivateKeySpec extends SmartCardHSMPrivateKeySpec
This class contains the data for RSA key pair generation.- Author:
- lew
-
-
Field Summary
Fields Modifier and Type Field Description static byte[]
TA_RSA_V15_SHA_256
-
Constructor Summary
Constructors Constructor Description SmartCardHSMRSAPrivateKeySpec(int size)
SmartCardHSMRSAPrivateKeySpec constructor Using default public exponent 2^16+1 and CHR/CAR "UT-00000"SmartCardHSMRSAPrivateKeySpec(java.lang.String car, java.lang.String chr, int exponent, int size)
SmartCardHSMRSAPrivateKeySpec constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConstructedTLV
encodeKeyParams()
int
getModulusSize()
void
setExponent(int exponent)
Set public exponent-
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
-
SmartCardHSMRSAPrivateKeySpec
public SmartCardHSMRSAPrivateKeySpec(java.lang.String car, java.lang.String chr, int exponent, int size)
SmartCardHSMRSAPrivateKeySpec constructor- Parameters:
car
- The Certificate Authority Referencechr
- The Certificate Holder Referenceexponent
- The private exponentsize
- the key size in bits
-
SmartCardHSMRSAPrivateKeySpec
public SmartCardHSMRSAPrivateKeySpec(int size)
SmartCardHSMRSAPrivateKeySpec constructor Using default public exponent 2^16+1 and CHR/CAR "UT-00000"- Parameters:
size
- the key size in bits
-
-
Method Detail
-
encodeKeyParams
protected ConstructedTLV encodeKeyParams()
- Specified by:
encodeKeyParams
in classSmartCardHSMPrivateKeySpec
-
getModulusSize
public int getModulusSize()
- Returns:
- The size of the modulus
-
setExponent
public void setExponent(int exponent)
Set public exponent- Parameters:
exponent
-
-
-