java.io.Serializable, java.lang.Comparable<CipherSuite>@Private public enum CipherSuite extends java.lang.Enum<CipherSuite>
Cipher.| Enum Constant | Description |
|---|---|
AES_CTR_NOPADDING |
|
SM4_CTR_NOPADDING |
|
UNKNOWN |
| Modifier and Type | Method | Description |
|---|---|---|
static CipherSuite |
convert(java.lang.String name) |
Convert to CipherSuite from name,
algoBlockSize is fixed for
certain cipher suite, just need to compare the name. |
int |
getAlgorithmBlockSize() |
|
java.lang.String |
getConfigSuffix() |
Returns suffix of cipher suite configuration.
|
java.lang.String |
getName() |
|
int |
getUnknownValue() |
|
void |
setUnknownValue(int unknown) |
|
java.lang.String |
toString() |
|
static CipherSuite |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static CipherSuite[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CipherSuite UNKNOWN
public static final CipherSuite AES_CTR_NOPADDING
public static final CipherSuite SM4_CTR_NOPADDING
public static CipherSuite[] values()
for (CipherSuite c : CipherSuite.values()) System.out.println(c);
public static CipherSuite valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void setUnknownValue(int unknown)
public int getUnknownValue()
public java.lang.String getName()
Cipherpublic int getAlgorithmBlockSize()
public java.lang.String toString()
toString in class java.lang.Enum<CipherSuite>public static CipherSuite convert(java.lang.String name)
algoBlockSize is fixed for
certain cipher suite, just need to compare the name.name - cipher suite namepublic java.lang.String getConfigSuffix()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.