public class IAIKPKCS11DsaPrivateKey extends IAIKPKCS11PrivateKey implements java.security.interfaces.DSAPrivateKey
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 |
---|
IAIKPKCS11DsaPrivateKey(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.DSAPrivateKey privateKeyObject)
Construct a private key object that is associated with the given privatekeyObjecton the given
token.
|
Modifier and Type | Method and Description |
---|---|
static IAIKPKCS11DsaPrivateKey |
create(TokenManager tokenManager,
iaik.pkcs.pkcs11.objects.DSAPrivateKey privateKeyObject)
Create a new instance of a IAIKPKCS11DsaPrivateKey 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.
|
protected java.security.KeyFactory |
getKeyFactory()
Get a key factory that can encode this key according to X.509.
|
java.security.interfaces.DSAParams |
getParams()
Get the DSA parameters of this key.
|
java.math.BigInteger |
getX()
Get the private value X of this key.
|
create, getEncoded, getFormat
create, destroy, finalize, getAlgorithmCode, getAlgorithmName, getAlias, getKeyID, getKeyObject, getSession, getTokenManager, isAutoDestroy, isDestroyed, jdk16AndEccelerate, setAutoDestroy, setSession, toString
public IAIKPKCS11DsaPrivateKey(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.DSAPrivateKey privateKeyObject)
tokenManager
- The token manager of the token where this key resides.privateKeyObject
- The PKCS#11 key object.public static IAIKPKCS11DsaPrivateKey create(TokenManager tokenManager, iaik.pkcs.pkcs11.objects.DSAPrivateKey privateKeyObject)
tokenManager
- The token manager of the token where the key is.privateKeyObject
- The PKCS#11 key object.public java.math.BigInteger getX()
getX
in interface java.security.interfaces.DSAPrivateKey
java.lang.UnsupportedOperationException
- If the value is not present or if the value is sensitive.public java.security.interfaces.DSAParams getParams()
getParams
in interface java.security.interfaces.DSAKey
java.lang.UnsupportedOperationException
- If the value is not present or if the value is sensitive.public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
getAlgorithm
in class IAIKPKCS11Key
protected java.security.KeyFactory getKeyFactory()
getKeyFactory
in class IAIKPKCS11PrivateKey
IAIK 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