Uses of Interface
javax.crypto.SecretKey
Packages that use 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
Methods in java.security that return SecretKeyModifier and TypeMethodDescriptionKeyStore.SecretKeyEntry.getSecretKey()Gets theSecretKeyfrom this entry.Constructors in java.security with parameters of type SecretKeyModifierConstructorDescriptionSecretKeyEntry(SecretKey secretKey) Constructs aSecretKeyEntrywith aSecretKey.SecretKeyEntry(SecretKey secretKey, Set<KeyStore.Entry.Attribute> attributes) Constructs aSecretKeyEntrywith aSecretKeyand associated entry attributes. -
Uses of SecretKey in javax.crypto
Methods in javax.crypto that return SecretKeyModifier 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.KDF.deriveKey(String alg, AlgorithmParameterSpec derivationSpec) Derives a key, returned as aSecretKeyobject.KEMSpi.DecapsulatorSpi.engineDecapsulate(byte[] encapsulation, int from, int to, String algorithm) The key decapsulation function.protected abstract SecretKeyKDFSpi.engineDeriveKey(String alg, AlgorithmParameterSpec derivationSpec) Derives a key, returned as aSecretKeyobject.protected abstract SecretKeyKeyGeneratorSpi.engineGenerateKey()Generates a secret key.protected abstract SecretKeyKeyAgreementSpi.engineGenerateSecret(String algorithm) Creates the shared secret and returns it as a secret key object of the requested algorithm type.protected abstract SecretKeySecretKeyFactorySpi.engineGenerateSecret(KeySpec keySpec) Generates aSecretKeyobject from the provided key specification (key material).protected abstract SecretKeySecretKeyFactorySpi.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 SecretKeyKeyGenerator.generateKey()Generates a secret key.final SecretKeyKeyAgreement.generateSecret(String algorithm) Creates the shared secret and returns it as aSecretKeyobject of the specified algorithm.final SecretKeySecretKeyFactory.generateSecret(KeySpec keySpec) Generates aSecretKeyobject from the provided key specification (key material).KEM.Encapsulated.key()Returns theSecretKey.final SecretKeySecretKeyFactory.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.Methods in javax.crypto with parameters of type SecretKeyModifier and TypeMethodDescriptionprotected abstract KeySpecSecretKeyFactorySpi.engineGetKeySpec(SecretKey key, Class<?> keySpec) Returns a specification (key material) of the given key object in the requested format.protected abstract SecretKeySecretKeyFactorySpi.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 KeySpecSecretKeyFactory.getKeySpec(SecretKey key, Class<?> keySpec) Returns a specification (key material) of the given key object in the requested format.final SecretKeySecretKeyFactory.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.Constructors in javax.crypto with parameters of type SecretKeyModifierConstructorDescriptionEncapsulated(SecretKey key, byte[] encapsulation, byte[] params) Constructs anEncapsulatedobject. -
Uses of SecretKey in javax.crypto.interfaces
Subinterfaces of SecretKey in javax.crypto.interfaces -
Uses of SecretKey in javax.crypto.spec
Classes in javax.crypto.spec that implement SecretKeyModifier and TypeClassDescriptionclassThis class specifies a secret key in a provider-independent fashion.Methods in javax.crypto.spec that return SecretKeyModifier and TypeMethodDescriptionHKDFParameterSpec.Expand.prk()Returns the pseudorandom key (PRK).Methods in javax.crypto.spec that return types with arguments of type SecretKeyModifier and TypeMethodDescriptionHKDFParameterSpec.Extract.ikms()Returns an unmodifiableListof input keying material values in the order they were added.HKDFParameterSpec.ExtractThenExpand.ikms()Returns an unmodifiableListof input keying material values in the order they were added.HKDFParameterSpec.Extract.salts()Returns an unmodifiableListof salt values in the order they were added.HKDFParameterSpec.ExtractThenExpand.salts()Returns an unmodifiableListof salt values in the order they were added.Methods in javax.crypto.spec with parameters of type SecretKeyModifier and TypeMethodDescriptionAdds input keying material (IKM) to the builder.Adds a salt to the builder.HKDFParameterSpec.expandOnly(SecretKey prk, byte[] info, int length) Creates anExpandobject. -
Uses of SecretKey in javax.security.auth.kerberos
Classes in javax.security.auth.kerberos that implement SecretKeyModifier and TypeClassDescriptionfinal classThis class encapsulates an EncryptionKey used in Kerberos.classThis class encapsulates a long term secret key for a Kerberos principal.Methods in javax.security.auth.kerberos that return SecretKeyModifier and TypeMethodDescriptionfinal SecretKeyKerberosTicket.getSessionKey()Returns the session key associated with this ticket.