Package jcifs.smb
Enum NtlmPasswordAuthenticator.AuthenticationType
- java.lang.Object
-
- java.lang.Enum<NtlmPasswordAuthenticator.AuthenticationType>
-
- jcifs.smb.NtlmPasswordAuthenticator.AuthenticationType
-
- All Implemented Interfaces:
Serializable
,Comparable<NtlmPasswordAuthenticator.AuthenticationType>
- Enclosing class:
- NtlmPasswordAuthenticator
public static enum NtlmPasswordAuthenticator.AuthenticationType extends Enum<NtlmPasswordAuthenticator.AuthenticationType>
Authentication strategy
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NtlmPasswordAuthenticator.AuthenticationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static NtlmPasswordAuthenticator.AuthenticationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final NtlmPasswordAuthenticator.AuthenticationType NULL
Null/anonymous authentication Login with no credentials
-
GUEST
public static final NtlmPasswordAuthenticator.AuthenticationType GUEST
Guest authentication Allows login with invalid credentials (username and/or password) Fallback to anonymous authentication is permitted
-
USER
public static final NtlmPasswordAuthenticator.AuthenticationType USER
Regular user authentication
-
-
Method Detail
-
values
public static NtlmPasswordAuthenticator.AuthenticationType[] 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 (NtlmPasswordAuthenticator.AuthenticationType c : NtlmPasswordAuthenticator.AuthenticationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NtlmPasswordAuthenticator.AuthenticationType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-