public class IAIKPKCS11RsaPrivateKey extends IAIKPKCS11PrivateKey implements java.security.interfaces.RSAPrivateCrtKey
keyFactory_AES, alias_, autoDestroy_, BATON, BLOWFISH, CAST, CAST128, CAST3, CAST5, CDMF, DES, DES2, DESede, destroyed_, DH, DSA, ECDSA, GENERIC_SECRET, IDEA, JUNIPER, KEA, KEY_TYPE_NAME_PROPERTIES, keyObject_, keyTypeCodes_, keyTypeNames_, RC2, RC4, RC5, RSA, session_, SKIPJACK, tokenManager_, TWOFISH, VENDOR_DEFINED| Constructor and Description |
|---|
IAIKPKCS11RsaPrivateKey(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.RSAPrivateKey privateKeyObject)
Construct a private key object that is associated with the given privatekeyObjecton the given
token.
|
| Modifier and Type | Method and Description |
|---|---|
static IAIKPKCS11RsaPrivateKey |
create(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.RSAPrivateKey privateKeyObject)
Create a new instance of a IAIKPKCS11RsaPrivateKey which's token managed by the given token
manager and is based on the given PKCS#11 key object.
|
java.lang.String |
getAlgorithm()
Get the algorithm name.
|
java.math.BigInteger |
getCrtCoefficient()
Get the CRT coefficient of this key.
|
protected java.security.KeyFactory |
getKeyFactory()
Get a key factory that can encode this key according to PKCS#8.
|
java.math.BigInteger |
getModulus()
Get the modulus of this key.
|
java.math.BigInteger |
getPrimeExponentP()
Get the prime exponent of P of this key.
|
java.math.BigInteger |
getPrimeExponentQ()
Get the prime exponent of Q of this key.
|
java.math.BigInteger |
getPrimeP()
Get the prime P of this key.
|
java.math.BigInteger |
getPrimeQ()
Get the prime Q of this key.
|
java.math.BigInteger |
getPrivateExponent()
Get the private exponent of this key.
|
java.math.BigInteger |
getPublicExponent()
Get the public exponent of this key.
|
create, getEncoded, getFormatcreate, destroy, finalize, getAlgorithmCode, getAlgorithmName, getAlias, getKeyID, getKeyObject, getSession, getTokenManager, isAutoDestroy, isDestroyed, jdk16AndEccelerate, setAutoDestroy, setSession, toStringpublic IAIKPKCS11RsaPrivateKey(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.RSAPrivateKey privateKeyObject)
tokenManager - The token manager of the token where this key resides.privateKeyObject - The PKCS#11 key object.public static IAIKPKCS11RsaPrivateKey create(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.RSAPrivateKey privateKeyObject)
tokenManager - The token manager of the token where the key is.privateKeyObject - The PKCS#11 key object.public java.math.BigInteger getPublicExponent()
getPublicExponent in interface java.security.interfaces.RSAPrivateCrtKeyjava.lang.UnsupportedOperationException - If the value is not present or if the value is sensitive.public java.math.BigInteger getPrimeP()
getPrimeP in interface java.security.interfaces.RSAPrivateCrtKeyjava.lang.UnsupportedOperationException - If the value is not present or if the value is sensitive.public java.math.BigInteger getPrimeQ()
getPrimeQ in interface java.security.interfaces.RSAPrivateCrtKeyjava.lang.UnsupportedOperationException - If the value is not present or if the value is sensitive.public java.math.BigInteger getPrimeExponentP()
getPrimeExponentP in interface java.security.interfaces.RSAPrivateCrtKeyjava.lang.UnsupportedOperationException - If the value is not present or if the value is sensitive.public java.math.BigInteger getPrimeExponentQ()
getPrimeExponentQ in interface java.security.interfaces.RSAPrivateCrtKeyjava.lang.UnsupportedOperationException - If the value is not present or if the value is sensitive.public java.math.BigInteger getCrtCoefficient()
getCrtCoefficient in interface java.security.interfaces.RSAPrivateCrtKeyjava.lang.UnsupportedOperationException - If the value is not present or if the value is sensitive.public java.math.BigInteger getPrivateExponent()
getPrivateExponent in interface java.security.interfaces.RSAPrivateKeyjava.lang.UnsupportedOperationException - If the value is not present or if the value is sensitive.public java.math.BigInteger getModulus()
getModulus in interface java.security.interfaces.RSAKeyjava.lang.UnsupportedOperationException - If the value is not present or if the value is sensitive.public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.KeygetAlgorithm in class IAIKPKCS11Keyprotected java.security.KeyFactory getKeyFactory()
getKeyFactory in class IAIKPKCS11PrivateKeyIAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4