Class RepeatedSecretKeySpec

java.lang.Object
org.bouncycastle.jce.spec.RepeatedSecretKeySpec
All Implemented Interfaces:
Serializable, Key, SecretKey

public class RepeatedSecretKeySpec
extends Object
implements SecretKey
A simple object to indicate that a symmetric cipher should reuse the last key provided.
See Also:
Serialized Form
  • Constructor Details

    • RepeatedSecretKeySpec

      public RepeatedSecretKeySpec​(String algorithm)
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Description copied from interface: Key
      Returns the name of the algorithm of this key. If the algorithm is unknown, null is returned.
      Specified by:
      getAlgorithm in interface Key
      Returns:
      the name of the algorithm of this key or null if the algorithm is unknown.
    • getFormat

      public String getFormat()
      Description copied from interface: Key
      Returns the name of the format used to encode this key, or null if it can not be encoded.
      Specified by:
      getFormat in interface Key
      Returns:
      the name of the format used to encode this key, or null if it can not be encoded.
    • getEncoded

      public byte[] getEncoded()
      Description copied from interface: Key
      Returns the encoded form of this key, or null if encoding is not supported by this key.
      Specified by:
      getEncoded in interface Key
      Returns:
      the encoded form of this key, or null if encoding is not supported by this key.