Top Description Fields Constructors Methods
sun.security.pkcs11

pack-priv final Class P11ECKeyFactory

extends P11KeyFactory
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, java.security.*, java.security.interfaces.*, java.security.spec.*, sun.security.pkcs11.wrapper.*, sun.security.util.DerValue, .ECUtil

EC KeyFactory implementation.
Author
Andreas Sterbenz
Since
1.6

Field Summary

Modifier and TypeField and Description
private static Provider
Inherited from sun.security.pkcs11.P11KeyFactory:
algorithmtoken

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
pack-priv static ECParameterSpec
decodeParameters(byte[] params)

pack-priv static ECPoint
decodePoint(byte[] encoded, EllipticCurve curve)

pack-priv static byte[]
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 static ECParameterSpec
pack-priv static ECParameterSpec
getECParameterSpec(int keySize)

pack-priv static ECParameterSpec
pack-priv static byte[]
private static Provider
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

Field Detail

sunECproviderback to summary
private static Provider sunECprovider

Constructor Detail

P11ECKeyFactoryback to summary
pack-priv P11ECKeyFactory(Token token, String algorithm)

Method Detail

decodeParametersback to summary
pack-priv static ECParameterSpec decodeParameters(byte[] params) throws IOException
decodePointback to summary
pack-priv static ECPoint decodePoint(byte[] encoded, EllipticCurve curve) throws IOException
encodeParametersback to summary
pack-priv static byte[] encodeParameters(ECParameterSpec params)
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 s, ECParameterSpec params) throws PKCS11Exception
generatePublicback to summary
private PublicKey generatePublic(ECPoint point, ECParameterSpec params) throws PKCS11Exception
getECParameterSpecback to summary
pack-priv static ECParameterSpec getECParameterSpec(String name)
getECParameterSpecback to summary
pack-priv static ECParameterSpec getECParameterSpec(int keySize)
getECParameterSpecback to summary
pack-priv static ECParameterSpec getECParameterSpec(ECParameterSpec spec)
getEncodedPublicValueback to summary
pack-priv static byte[] getEncodedPublicValue(PublicKey key) throws InvalidKeyException
getSunECProviderback to summary
private static Provider getSunECProvider()
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.