Uses of Interface
javax.crypto.SecretKey
| Package | Description |
|---|---|
| java.security |
Provides the classes and interfaces for the security framework.
|
| javax.crypto |
Provides the classes and interfaces for cryptographic
operations.
|
| javax.crypto.interfaces |
Provides interfaces for Diffie-Hellman keys as defined in RSA
Laboratories' PKCS #3.
|
| javax.crypto.spec |
Provides classes and interfaces for key specifications and
algorithm parameter specifications.
|
| javax.security.auth.kerberos |
This package contains utility classes related to the Kerberos network
authentication protocol.
|
-
Uses of SecretKey in java.security
Methods in java.security that return SecretKey Modifier and Type Method Description SecretKeyKeyStore.SecretKeyEntry. getSecretKey()Gets theSecretKeyfrom this entry.Constructors in java.security with parameters of type SecretKey Constructor Description SecretKeyEntry(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 SecretKey Modifier and Type Method Description 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.SecretKeyKeyGenerator. generateKey()Generates a secret key.SecretKeyKeyAgreement. generateSecret(String algorithm)Creates the shared secret and returns it as aSecretKeyobject of the specified algorithm.SecretKeySecretKeyFactory. generateSecret(KeySpec keySpec)Generates aSecretKeyobject from the provided key specification (key material).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 SecretKey Modifier and Type Method Description protected 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.KeySpecSecretKeyFactory. getKeySpec(SecretKey key, Class<?> keySpec)Returns a specification (key material) of the given key object in the requested format.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. -
Uses of SecretKey in javax.crypto.interfaces
Subinterfaces of SecretKey in javax.crypto.interfaces Modifier and Type Interface Description interfacePBEKeyThe interface to a PBE key. -
Uses of SecretKey in javax.crypto.spec
Classes in javax.crypto.spec that implement SecretKey Modifier and Type Class Description classSecretKeySpecThis class specifies a secret key in a provider-independent fashion. -
Uses of SecretKey in javax.security.auth.kerberos
Classes in javax.security.auth.kerberos that implement SecretKey Modifier and Type Class Description classEncryptionKeyThis class encapsulates an EncryptionKey used in Kerberos.classKerberosKeyThis class encapsulates a long term secret key for a Kerberos principal.Methods in javax.security.auth.kerberos that return SecretKey Modifier and Type Method Description SecretKeyKerberosTicket. getSessionKey()Returns the session key associated with this ticket.