APIdia Launch Partner
Top Description Constructors Methods
com.sun.crypto.provider

pack-priv final Class ConstructKeys

extends Object
Class Inheritance
Imports
jdk.internal.access.SharedSecrets, java.security.Key, .PublicKey, .PrivateKey, .KeyFactory, .InvalidKeyException, .NoSuchAlgorithmException, java.security.spec.PKCS8EncodedKeySpec, .X509EncodedKeySpec, .InvalidKeySpecException, java.util.Arrays, javax.crypto.SecretKey, .Cipher, javax.crypto.spec.SecretKeySpec

This class is a helper class which construct key objects from encoded keys.
Author
Sharon Liu

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

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

pack-priv static final Key
constructKey(byte[] encoding, int ofs, int len, String keyAlgorithm, int keyType)

private static final PrivateKey
constructPrivateKey(byte[] encodedKey, int ofs, int len, String encodedKeyAlgorithm)

private static final PublicKey
constructPublicKey(byte[] encodedKey, int ofs, int len, String encodedKeyAlgorithm)

private static final SecretKey
constructSecretKey(byte[] encodedKey, int ofs, int len, String encodedKeyAlgorithm)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConstructKeysback to summary
pack-priv ConstructKeys()

Method Detail

constructKeyback to summary
pack-priv static final Key constructKey(byte[] encoding, String keyAlgorithm, int keyType) throws InvalidKeyException, NoSuchAlgorithmException
constructKeyback to summary
pack-priv static final Key constructKey(byte[] encoding, int ofs, int len, String keyAlgorithm, int keyType) throws InvalidKeyException, NoSuchAlgorithmException
constructPrivateKeyback to summary
private static final PrivateKey constructPrivateKey(byte[] encodedKey, int ofs, int len, String encodedKeyAlgorithm) throws InvalidKeyException, NoSuchAlgorithmException
constructPublicKeyback to summary
private static final PublicKey constructPublicKey(byte[] encodedKey, int ofs, int len, String encodedKeyAlgorithm) throws InvalidKeyException, NoSuchAlgorithmException
constructSecretKeyback to summary
private static final SecretKey constructSecretKey(byte[] encodedKey, int ofs, int len, String encodedKeyAlgorithm)