com.ibm.crypto.pkcs11impl.provider

Interface PKCS11RSAPrivateKey

  • All Superinterfaces:
    javax.security.auth.Destroyable, java.security.Key, com.ibm.pkcs11.P11Key, PKCS11Key, PKCS11PrivateKey, java.security.PrivateKey, java.security.interfaces.RSAKey, java.security.interfaces.RSAPrivateCrtKey, java.security.interfaces.RSAPrivateKey, java.io.Serializable
    All Known Implementing Classes:
    RSAPrivateKey


    public interface PKCS11RSAPrivateKey
    extends PKCS11PrivateKey, java.security.interfaces.RSAPrivateKey, java.security.interfaces.RSAPrivateCrtKey
    Contains the basic things needed for a PKCS 11 DSA private key. It is a subclass of PKCS11PrivateKey.
    • Method Detail

      • getModulus

        java.math.BigInteger getModulus()
        Returns the modulus.
        Specified by:
        getModulus in interface java.security.interfaces.RSAKey
        Returns:
        the modulus
      • getPublicExponent

        java.math.BigInteger getPublicExponent()
        Returns the public exponent
        Specified by:
        getPublicExponent in interface java.security.interfaces.RSAPrivateCrtKey
        Returns:
        the public exponent e
      • getPrivateExponent

        java.math.BigInteger getPrivateExponent()
        Returns the private exponent, if available.
        Specified by:
        getPrivateExponent in interface java.security.interfaces.RSAPrivateKey
        Returns:
        the private exponent d, if available.
      • getPrime1

        java.math.BigInteger getPrime1()
        Returns prime 1
        Returns:
        prime number p
      • getPrime2

        java.math.BigInteger getPrime2()
        Returns prime 2
        Returns:
        prime number q
      • getExponent1

        java.math.BigInteger getExponent1()
        Returns exponent 1
        Returns:
        private exponent d modulo p-1
      • getExponent2

        java.math.BigInteger getExponent2()
        Returns exponent 2
        Returns:
        the private exponent d modulo q-1
      • getCoefficient

        java.math.BigInteger getCoefficient()
        Returns coefficient
        Returns:
        the CRT coefficient q^(-1) mod p

© Portions Copyright 2003, 2017 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2017, Oracle and/or its affiliates. All rights reserved.