Top Constructors Methods
sun.security.pkcs11

pack-priv final Class ConstructKeys

Located in compilation unit of sun.security.pkcs11.P11RSACipher.

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static Key
constructKey(byte[] encoding, String keyAlgorithm, int keyType)

private static PrivateKey

Returns:

a private key constructed from the encodedKey.
constructPrivateKey
(byte[]
the encoding of a private key.
encodedKey
,
String
the algorithm the wrapped key is for.
encodedKeyAlgorithm
)

Construct a private key from its encoding.

private static PublicKey

Returns:

a public key constructed from the encodedKey.
constructPublicKey
(byte[]
the encoding of a public key.
encodedKey
,
String
the algorithm the encodedKey is for.
encodedKeyAlgorithm
)

Construct a public key from its encoding.

private static SecretKey

Returns:

a secret key constructed from the encodedKey.
constructSecretKey
(byte[]
the encoding of a secret key.
encodedKey
,
String
the algorithm the secret key is for.
encodedKeyAlgorithm
)

Construct a secret key from its encoding.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConstructKeysback to summary
pack-priv ConstructKeys()

Method Detail

constructKeyback to summary
pack-priv static Key constructKey(byte[] encoding, String keyAlgorithm, int keyType) throws InvalidKeyException, NoSuchAlgorithmException
constructPrivateKeyback to summary
private static PrivateKey constructPrivateKey(byte[] encodedKey, String encodedKeyAlgorithm) throws InvalidKeyException, NoSuchAlgorithmException

Construct a private key from its encoding.

Parameters
encodedKey:byte[]

the encoding of a private key.

encodedKeyAlgorithm:String

the algorithm the wrapped key is for.

Returns:PrivateKey

a private key constructed from the encodedKey.

constructPublicKeyback to summary
private static PublicKey constructPublicKey(byte[] encodedKey, String encodedKeyAlgorithm) throws InvalidKeyException, NoSuchAlgorithmException

Construct a public key from its encoding.

Parameters
encodedKey:byte[]

the encoding of a public key.

encodedKeyAlgorithm:String

the algorithm the encodedKey is for.

Returns:PublicKey

a public key constructed from the encodedKey.

constructSecretKeyback to summary
private static SecretKey constructSecretKey(byte[] encodedKey, String encodedKeyAlgorithm)

Construct a secret key from its encoding.

Parameters
encodedKey:byte[]

the encoding of a secret key.

encodedKeyAlgorithm:String

the algorithm the secret key is for.

Returns:SecretKey

a secret key constructed from the encodedKey.