Package org.bouncycastle.jcajce.spec

## Class RepeatedSecretKeySpec

- java.lang.Object
- - org.bouncycastle.jcajce.spec.RepeatedSecretKeySpec

- All Implemented Interfaces:
    `java.io.Serializable`, `java.security.Key`, `javax.crypto.SecretKey`, `javax.security.auth.Destroyable`
  Direct Known Subclasses:
    `RepeatedSecretKeySpec`

      public class RepeatedSecretKeySpec
      extends java.lang.Object
      implements javax.crypto.SecretKey

  A simple object to indicate that a symmetric cipher should reuse the last key provided.
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from interface javax.crypto.SecretKey

      `serialVersionUID`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RepeatedSecretKeySpec​(java.lang.String algorithm)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | `getAlgorithm()` |
    `byte[]` | `getEncoded()` |
    `java.lang.String` | `getFormat()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface javax.security.auth.Destroyable

      `destroy, isDestroyed`

- - ### Constructor Detail

    - #### RepeatedSecretKeySpec

          public RepeatedSecretKeySpec​(java.lang.String algorithm)

  - ### Method Detail

    - #### getAlgorithm

          public java.lang.String getAlgorithm()

      Specified by:
        `getAlgorithm` in interface `java.security.Key`

    - #### getFormat

          public java.lang.String getFormat()

      Specified by:
        `getFormat` in interface `java.security.Key`

    - #### getEncoded

          public byte[] getEncoded()

      Specified by:
        `getEncoded` in interface `java.security.Key`