@InterfaceAudience.Private public enum AuthMethod extends Enum<AuthMethod>
限定符和类型 | 字段和说明 |
---|---|
org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod |
authenticationMethod |
byte |
code
The code for this method.
|
String |
mechanismName |
限定符和类型 | 方法和说明 |
---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static AuthMethod[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public 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.