public class CipherTransformation extends Object implements CryptoAlgorithm
Cipher transformation. Please be careful
not to confuse or mix algorithm and transformation.| Modifier and Type | Field and Description |
|---|---|
private String |
algorithm |
private String |
mode |
static String |
MODE_GCM
Mode value "GCM" (Galois/Counter
Mode). |
private String |
padding |
static String |
PADDING_NONE
Padding value "NoPadding". |
private static String |
SEPARATOR |
private String |
transformation |
| Constructor and Description |
|---|
CipherTransformation(String algorithm)
The constructor.
|
CipherTransformation(String algorithm,
String mode,
String padding)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlgorithm() |
String |
getMode() |
String |
getPadding() |
String |
getTransformation() |
int |
hashCode() |
static CipherTransformation |
of(String transformation) |
String |
toString() |
public static final String PADDING_NONE
Padding value "NoPadding".public static final String MODE_GCM
Mode value "GCM" (Galois/Counter
Mode).private static final String SEPARATOR
private final String algorithm
private final String mode
private final String padding
private final String transformation
public CipherTransformation(String algorithm)
of(String) to create from transformation.algorithm - - see getAlgorithm().public CipherTransformation(String algorithm, String mode, String padding)
algorithm - - see getAlgorithm().mode - - see getMode().padding - - see getPadding().public String getAlgorithm()
getAlgorithm in interface CryptoAlgorithmencryption algorithm. See Cipher
Algorithm Names.Key.getAlgorithm(),
Signature.getAlgorithm(),
MessageDigest.getAlgorithm(),
SecureRandom.getAlgorithm(),
Cipher.getAlgorithm()public String getMode()
cipher mode mode.public String getPadding()
cipher padding padding.public String getTransformation()
cipher transformation composed of
algorithm, mode, and padding.public static CipherTransformation of(String transformation)
transformation - the transformation.CipherTransformation.Copyright © 2001–2019 mmm-Team. All rights reserved.