@InterfaceAudience.Private public enum AuthMethod extends Enum<AuthMethod>
Modifier and Type | Field and Description |
---|---|
org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod |
authenticationMethod |
byte |
code
The code for this method.
|
String |
mechanismName |
Modifier and Type | Method and Description |
---|---|
String |
getMechanismName()
Return the SASL mechanism name
|
static AuthMethod |
read(DataInput in)
Read from in
|
static AuthMethod |
valueOf(byte code)
Return the object represented by the code.
|
static AuthMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
write(DataOutput out)
Write to out
|
public static final AuthMethod SIMPLE
public static final AuthMethod KERBEROS
public static final AuthMethod DIGEST
public final byte code
public final String mechanismName
public final org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod authenticationMethod
public static AuthMethod[] values()
for (AuthMethod c : AuthMethod.values()) System.out.println(c);
public static AuthMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static AuthMethod valueOf(byte code)
public String getMechanismName()
public static AuthMethod read(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.