Interface ZeroizableSecretKey

  • All Superinterfaces:
    javax.security.auth.Destroyable, java.security.Key, javax.crypto.SecretKey, java.io.Serializable

    public interface ZeroizableSecretKey
    extends javax.crypto.SecretKey
    Interface for SecretKey's that can be explictly zeroized.

    As this makes the key mutable, at the moment it only applies to MAC keys associated with key agreement schemes.

    • Field Summary

      • Fields inherited from interface javax.crypto.SecretKey

        serialVersionUID
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void zeroize()
      Proactively zero out the key bytes.
      • Methods inherited from interface javax.security.auth.Destroyable

        destroy, isDestroyed
      • Methods inherited from interface java.security.Key

        getAlgorithm, getEncoded, getFormat
    • Method Detail

      • zeroize

        void zeroize()
        Proactively zero out the key bytes.