public class AEADBlockCipherSpec extends java.lang.Object implements Spec<org.bouncycastle.crypto.modes.AEADBlockCipher>
newInstance() method.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
algorithm
Cipher algorithm algorithm.
|
static java.util.regex.Pattern |
FORMAT
String specification format,
algorithm/mode. |
private java.lang.String |
mode
Cipher mode, e.g.
|
| Constructor and Description |
|---|
AEADBlockCipherSpec(java.lang.String algName,
java.lang.String cipherMode)
Creates a new instance from a cipher algorithm and mode.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm() |
java.lang.String |
getMode()
Gets the cipher mode.
|
org.bouncycastle.crypto.modes.AEADBlockCipher |
newInstance()
Creates a new AEAD block cipher from the specification in this instance.
|
static AEADBlockCipherSpec |
parse(java.lang.String specification)
Parses a string representation of a AEAD block cipher specification into an instance of this class.
|
java.lang.String |
toString() |
public static final java.util.regex.Pattern FORMAT
algorithm/mode.private final java.lang.String algorithm
private final java.lang.String mode
public AEADBlockCipherSpec(java.lang.String algName,
java.lang.String cipherMode)
algName - Cipher algorithm name.cipherMode - Cipher mode, e.g. GCM, CCM.public java.lang.String getAlgorithm()
getAlgorithm in interface Spec<org.bouncycastle.crypto.modes.AEADBlockCipher>public java.lang.String getMode()
public org.bouncycastle.crypto.modes.AEADBlockCipher newInstance()
newInstance in interface Spec<org.bouncycastle.crypto.modes.AEADBlockCipher>public java.lang.String toString()
toString in class java.lang.Objectpublic static AEADBlockCipherSpec parse(java.lang.String specification)
specification - AEAD block cipher specification of the form algorithm/mode.