- java.lang.Object
-
- java.lang.Enum<SaslServerMechanism>
-
- io.github.astrapi69.crypt.api.mechanism.SaslServerMechanism
-
- All Implemented Interfaces:
Mechanism
,java.io.Serializable
,java.lang.Comparable<SaslServerMechanism>
public enum SaslServerMechanism extends java.lang.Enum<SaslServerMechanism> implements Mechanism
The enumSaslServerMechanism
provides all the algorithm names that can be specified * when generating an instance ofjavax.security.sasl.SaslServer
. For more info see: https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#exemption-mechanisms
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CRAM_MD5
The enum constant CRAM_MD5DIGEST_MD5
The enum constant DIGEST_MD5GSSAPI
The enum constant GSSAPINTLM
The enum constant NTLMUNKNOWN
The enum constant 'UNKNOWN' if the SaslServer mechanism name is unknown
-
Field Summary
-
Fields inherited from interface io.github.astrapi69.crypt.api.mechanism.Mechanism
UNKNOWN_MECHANISM_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMechanism()
Gets the mechanismstatic SaslServerMechanism
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SaslServerMechanism[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CRAM_MD5
public static final SaslServerMechanism CRAM_MD5
The enum constant CRAM_MD5
-
DIGEST_MD5
public static final SaslServerMechanism DIGEST_MD5
The enum constant DIGEST_MD5
-
GSSAPI
public static final SaslServerMechanism GSSAPI
The enum constant GSSAPI
-
NTLM
public static final SaslServerMechanism NTLM
The enum constant NTLM
-
UNKNOWN
public static final SaslServerMechanism UNKNOWN
The enum constant 'UNKNOWN' if the SaslServer mechanism name is unknown
-
-
Method Detail
-
values
public static SaslServerMechanism[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SaslServerMechanism c : SaslServerMechanism.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SaslServerMechanism valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getMechanism
public java.lang.String getMechanism()
Gets the mechanism- Specified by:
getMechanism
in interfaceMechanism
- Returns:
- the mechanism
-
-