Package javax.crypto

Interface SecretKey

  • All Superinterfaces:
    Key, Serializable
    All Known Subinterfaces:
    PBEKey
    All Known Implementing Classes:
    BCPBEKey, SecretKeySpec

    public interface SecretKey
    extends Key
    A cryptographic secret (symmetric) key.

    This interface is a marker interface to group secret keys and to provide type safety for.

    Implementations of this interface have to overwrite the equals and hashCode from Object so comparison is done using the actual key data and not the object reference.

    • Field Detail

      • serialVersionUID

        static final long serialVersionUID
        The serialization version identifier.
        See Also:
        Constant Field Values