- java.lang.Object
-
- java.lang.Enum<SaslClientMechanism>
-
- io.github.astrapi69.crypt.api.mechanism.SaslClientMechanism
-
- All Implemented Interfaces:
Mechanism
,java.io.Serializable
,java.lang.Comparable<SaslClientMechanism>
public enum SaslClientMechanism extends java.lang.Enum<SaslClientMechanism> implements Mechanism
The enumSaslClientMechanism
provides all the algorithm names that can be specified * when generating an instance ofjavax.security.sasl.SaslClient
. 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_MD5EXTERNAL
The enum constant EXTERNALGSSAPI
The enum constant GSSAPINTLM
The enum constant NTLMPLAIN
The enum constant PLAINUNKNOWN
The enum constant 'UNKNOWN' if the SaslClient mechanism name is unknown
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CRAM_MD5_MECHANISM_NAME
The string constant CRAM_MD5_MECHANISM_NAMEstatic java.lang.String
DIGEST_MD5_MECHANISM_NAME
The string constant DIGEST_MD5_MECHANISM_NAMEstatic java.lang.String
EXTERNAL_MECHANISM_NAME
The string constant EXTERNAL_MECHANISM_NAMEstatic java.lang.String
GSSAPI_MECHANISM_NAME
The string constant GSSAPI_MECHANISM_NAMEstatic java.lang.String
NTLM_MECHANISM_NAME
The string constant NTLM_MECHANISM_NAMEstatic java.lang.String
PLAIN_MECHANISM_NAME
The string constant PLAIN_MECHANISM_NAME-
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 SaslClientMechanism
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SaslClientMechanism[]
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 SaslClientMechanism CRAM_MD5
The enum constant CRAM_MD5
-
DIGEST_MD5
public static final SaslClientMechanism DIGEST_MD5
The enum constant DIGEST_MD5
-
EXTERNAL
public static final SaslClientMechanism EXTERNAL
The enum constant EXTERNAL
-
GSSAPI
public static final SaslClientMechanism GSSAPI
The enum constant GSSAPI
-
NTLM
public static final SaslClientMechanism NTLM
The enum constant NTLM
-
PLAIN
public static final SaslClientMechanism PLAIN
The enum constant PLAIN
-
UNKNOWN
public static final SaslClientMechanism UNKNOWN
The enum constant 'UNKNOWN' if the SaslClient mechanism name is unknown
-
-
Field Detail
-
CRAM_MD5_MECHANISM_NAME
public static final java.lang.String CRAM_MD5_MECHANISM_NAME
The string constant CRAM_MD5_MECHANISM_NAME- See Also:
- Constant Field Values
-
DIGEST_MD5_MECHANISM_NAME
public static final java.lang.String DIGEST_MD5_MECHANISM_NAME
The string constant DIGEST_MD5_MECHANISM_NAME- See Also:
- Constant Field Values
-
EXTERNAL_MECHANISM_NAME
public static final java.lang.String EXTERNAL_MECHANISM_NAME
The string constant EXTERNAL_MECHANISM_NAME- See Also:
- Constant Field Values
-
GSSAPI_MECHANISM_NAME
public static final java.lang.String GSSAPI_MECHANISM_NAME
The string constant GSSAPI_MECHANISM_NAME- See Also:
- Constant Field Values
-
NTLM_MECHANISM_NAME
public static final java.lang.String NTLM_MECHANISM_NAME
The string constant NTLM_MECHANISM_NAME- See Also:
- Constant Field Values
-
PLAIN_MECHANISM_NAME
public static final java.lang.String PLAIN_MECHANISM_NAME
The string constant PLAIN_MECHANISM_NAME- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SaslClientMechanism[] 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 (SaslClientMechanism c : SaslClientMechanism.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SaslClientMechanism 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
-
-