Class 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 Detail

      • TA_RSA_V15_SHA_256

        public static final byte[] TA_RSA_V15_SHA_256
    • Constructor Detail

      • SmartCardHSMRSAPrivateKeySpec

        public SmartCardHSMRSAPrivateKeySpec​(java.lang.String car,
                                             java.lang.String chr,
                                             int exponent,
                                             int size)
        SmartCardHSMRSAPrivateKeySpec constructor
        Parameters:
        car - The Certificate Authority Reference
        chr - The Certificate Holder Reference
        exponent - The private exponent
        size - 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

      • getModulusSize

        public int getModulusSize()
        Returns:
        The size of the modulus
      • setExponent

        public void setExponent​(int exponent)
        Set public exponent
        Parameters:
        exponent -