public static enum Authenticator.RequestorType extends Enum<Authenticator.RequestorType>
Enum Constant and Description |
---|
PROXY
实体请求身份验证是一个HTTP代理服务器。
|
SERVER
实体是一个HTTP服务器请求认证的起源。
|
Modifier and Type | Method and Description |
---|---|
static Authenticator.RequestorType |
valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static Authenticator.RequestorType[] |
values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
public static final Authenticator.RequestorType PROXY
public static final Authenticator.RequestorType SERVER
public static Authenticator.RequestorType[] values()
对于(authenticator.requestortype C:认证。requestortype。values()) 系统,println(C);
public static Authenticator.RequestorType valueOf(String name)
name
-定要返回的枚举的名称。
IllegalArgumentException
-如果这个枚举类型,也没有固定的具有指定名称
NullPointerException
-如果参数为空
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.