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 SecretKey
KeyStore.SecretKeyEntry. getSecretKey()
Gets theSecretKey
from this entry.Constructors in java.security with parameters of type SecretKey Constructor Description SecretKeyEntry(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
Methods in javax.crypto that return SecretKey Modifier and Type Method Description 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.SecretKey
KeyGenerator.