Top Description Fields Constructors Methods
sun.security.pkcs11

pack-priv final Class P11DSAKeyFactory

extends P11KeyFactory
Class Inheritance
Imports
java.math.BigInteger, java.security.*, java.security.interfaces.*, java.security.spec.*, sun.security.pkcs11.wrapper.*

DSA KeyFactory implementation.
Author
Andreas Sterbenz
Since
1.5

Field Summary

Inherited from sun.security.pkcs11.P11KeyFactory:
algorithmtoken

Constructor Summary

AccessConstructor and Description
pack-priv
P11DSAKeyFactory(Token token, String algorithm)

Method Summary

Modifier and TypeMethod and Description
protected PrivateKey
engineGeneratePrivate(KeySpec
the specification (key material) of the private key.
keySpec
)

Implements abstract java.security.KeyFactorySpi.engineGeneratePrivate.

Generates a private key object from the provided key specification (key material).

protected PublicKey
engineGeneratePublic(KeySpec
the specification (key material) of the public key.
keySpec
)

Implements abstract java.security.KeyFactorySpi.engineGeneratePublic.

Generates a public key object from the provided key specification (key material).

private PrivateKey
private PublicKey
pack-priv <T extends KeySpec> T
pack-priv <T extends KeySpec> T
pack-priv KeyFactory
pack-priv PrivateKey
pack-priv PublicKey
Inherited from sun.security.pkcs11.P11KeyFactory:
convertKeyengineGetKeySpecengineTranslateKeygetPKCS11KeyType

Constructor Detail

P11DSAKeyFactoryback to summary
pack-priv P11DSAKeyFactory(Token token, String algorithm)

Method Detail

engineGeneratePrivateback to summary
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException

Implements abstract java.security.KeyFactorySpi.engineGeneratePrivate.

Doc from java.security.KeyFactorySpi.engineGeneratePrivate.

Generates a private key object from the provided key specification (key material).

Parameters
keySpec:KeySpec

the specification (key material) of the private key.

Returns:PrivateKey

the private key.

Exceptions
InvalidKeySpecException:
if the given key specification is inappropriate for this key factory to produce a private key.
engineGeneratePublicback to summary
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException

Implements abstract java.security.KeyFactorySpi.engineGeneratePublic.

Doc from java.security.KeyFactorySpi.engineGeneratePublic.

Generates a public key object from the provided key specification (key material).

Parameters
keySpec:KeySpec

the specification (key material) of the public key.

Returns:PublicKey

the public key.

Exceptions
InvalidKeySpecException:
if the given key specification is inappropriate for this key factory to produce a public key.
generatePrivateback to summary
private PrivateKey generatePrivate(BigInteger x, BigInteger p, BigInteger q, BigInteger g) throws PKCS11Exception
generatePublicback to summary
private PublicKey generatePublic(BigInteger y, BigInteger p, BigInteger q, BigInteger g) throws PKCS11Exception
implGetPrivateKeySpecback to summary
pack-priv <T extends KeySpec> T implGetPrivateKeySpec(P11Key key, Class<T> keySpec, Session[] session) throws PKCS11Exception, InvalidKeySpecException

Implements abstract sun.security.pkcs11.P11KeyFactory.implGetPrivateKeySpec.

implGetPublicKeySpecback to summary
pack-priv <T extends KeySpec> T implGetPublicKeySpec(P11Key key, Class<T> keySpec, Session[] session) throws PKCS11Exception, InvalidKeySpecException

Implements abstract sun.security.pkcs11.P11KeyFactory.implGetPublicKeySpec.

implGetSoftwareFactoryback to summary
pack-priv KeyFactory implGetSoftwareFactory() throws GeneralSecurityException

Implements abstract sun.security.pkcs11.P11KeyFactory.implGetSoftwareFactory.

implTranslatePrivateKeyback to summary
pack-priv PrivateKey implTranslatePrivateKey(PrivateKey key) throws InvalidKeyException

Implements abstract sun.security.pkcs11.P11KeyFactory.implTranslatePrivateKey.

implTranslatePublicKeyback to summary
pack-priv PublicKey implTranslatePublicKey(PublicKey key) throws InvalidKeyException

Implements abstract sun.security.pkcs11.P11KeyFactory.implTranslatePublicKey.