javax.crypto

Interface SecretKey

public interface SecretKey extends Key

A secret key for symmetric cryptography.

This interface defines no new methods over {@link java.security.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 {@link java.security.Key#getFormat()}.

Concrete implementations of this interface should override the {@link java.lang.Object#equals} and {@link java.lang.Object#hashCode} methods of {@link java.lang.Object} to use the actual key data rather than the identity-based default methods.

See Also: SecretKeyFactory Cipher

Field Summary
longserialVersionUID

Field Detail

serialVersionUID

public long serialVersionUID