javax.crypto
Interface SecretKey
- All Superinterfaces:
- Key, Serializable
- All Known Subinterfaces:
- PBEKey
- All Known Implementing Classes:
- KerberosKey, SecretKeySpec
public interface SecretKey
- extends Key
A secret key for symmetric cryptography.
This interface defines no new methods over Key
, but rather is intended to be a marker
interface and to provide type safety for secret keys.
The format of secret keys should be RAW
, as returned
by Key.getFormat()
.
Concrete implementations of this interface should override the
Object.equals(java.lang.Object)
and Object.hashCode()
methods of Object
to use the actual key data rather
than the identity-based default methods.
- See Also:
SecretKeyFactory
,
Cipher
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values