Uses of Interface
javax.crypto.SecretKey
Package
Description
Provides the classes and interfaces for the security framework.
Provides the classes and interfaces for cryptographic
operations.
Provides interfaces for Diffie-Hellman keys as defined in RSA
Laboratories' PKCS #3.
Provides classes and interfaces for key specifications and
algorithm parameter specifications.
This package contains utility classes related to the Kerberos network
authentication protocol.
-
Uses of SecretKey in java.security
Modifier and TypeMethodDescriptionKeyStore.SecretKeyEntry.getSecretKey()
Gets theSecretKey
from this entry.ModifierConstructorDescriptionSecretKeyEntry
(SecretKey secretKey) Constructs aSecretKeyEntry
with aSecretKey
.SecretKeyEntry
(SecretKey secretKey, Set<KeyStore.Entry.Attribute> attributes) Constructs aSecretKeyEntry
with aSecretKey
and associated entry attributes. -
Uses of SecretKey in javax.crypto
Modifier and TypeMethodDescriptionKEM.Decapsulator.decapsulate
(byte[] encapsulation) The key decapsulation function.KEM.Decapsulator.decapsulate
(byte[] encapsulation, int from, int to, String algorithm) The key decapsulation function.KEMSpi.DecapsulatorSpi.engineDecapsulate
(byte[] encapsulation, int from, int to, String algorithm) The key decapsulation function.protected abstract SecretKey
KeyGeneratorSpi.engineGenerateKey()
Generates a secret key.protected abstract SecretKey
KeyAgreementSpi.engineGenerateSecret
(String algorithm) Creates the shared secret and returns it as a secret key object of the requested algorithm type.protected abstract SecretKey
SecretKeyFactorySpi.engineGenerateSecret
(KeySpec keySpec) Generates aSecretKey
object from the provided key specification (key material).protected abstract SecretKey
SecretKeyFactorySpi.engineTranslateKey
(SecretKey key) Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this secret-key factory.final SecretKey
KeyGenerator.generateKey()
Generates a secret key.final SecretKey
KeyAgreement.generateSecret
(String algorithm) Creates the shared secret and returns it as aSecretKey
object of the specified algorithm.final SecretKey
SecretKeyFactory.generateSecret
(KeySpec keySpec) Generates aSecretKey
object from the provided key specification (key material).KEM.Encapsulated.key()
Returns theSecretKey
.final SecretKey
SecretKeyFactory.translateKey
(SecretKey key) Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this secret-key factory.Modifier and TypeMethodDescriptionprotected abstract KeySpec
SecretKeyFactorySpi.engineGetKeySpec
(SecretKey key, Class<?> keySpec) Returns a specification (key material) of the given key object in the requested format.protected abstract SecretKey
SecretKeyFactorySpi.engineTranslateKey
(SecretKey key) Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this secret-key factory.final KeySpec
SecretKeyFactory.getKeySpec
(SecretKey key, Class<?> keySpec) Returns a specification (key material) of the given key object in the requested format.final SecretKey
SecretKeyFactory.translateKey
(SecretKey key) Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this secret-key factory.ModifierConstructorDescriptionEncapsulated
(SecretKey key, byte[] encapsulation, byte[] params) Constructs anEncapsulated
object. -
Uses of SecretKey in javax.crypto.interfaces
-
Uses of SecretKey in javax.crypto.spec
Modifier and TypeClassDescriptionclass
This class specifies a secret key in a provider-independent fashion. -
Uses of SecretKey in javax.security.auth.kerberos
Modifier and TypeClassDescriptionfinal class
This class encapsulates an EncryptionKey used in Kerberos.class
This class encapsulates a long term secret key for a Kerberos principal.Modifier and TypeMethodDescriptionfinal SecretKey
KerberosTicket.getSessionKey()
Returns the session key associated with this ticket.