Package org.bouncycastle.jce.spec
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
-
Field Summary
Fields inherited from interface javax.crypto.SecretKey
serialVersionUID -
Constructor Summary
Constructors Constructor Description RepeatedSecretKeySpec(String algorithm) -
Method Summary
Modifier and Type Method Description StringgetAlgorithm()Returns the name of the algorithm of this key.byte[]getEncoded()Returns the encoded form of this key, ornullif encoding is not supported by this key.StringgetFormat()Returns the name of the format used to encode this key, ornullif it can not be encoded.
-
Constructor Details
-
RepeatedSecretKeySpec
-
-
Method Details
-
getAlgorithm
Description copied from interface:KeyReturns the name of the algorithm of this key. If the algorithm is unknown,nullis returned.- Specified by:
getAlgorithmin interfaceKey- Returns:
- the name of the algorithm of this key or
nullif the algorithm is unknown.
-
getFormat
Description copied from interface:KeyReturns the name of the format used to encode this key, ornullif it can not be encoded. -
getEncoded
public byte[] getEncoded()Description copied from interface:KeyReturns the encoded form of this key, ornullif encoding is not supported by this key.- Specified by:
getEncodedin interfaceKey- Returns:
- the encoded form of this key, or
nullif encoding is not supported by this key.
-