public enum ClientType extends Enum<ClientType>
| Enum Constant and Description |
|---|
AuthorizationGrant
A Confidential client, such as a server-based web application - which
uses the authorization token flow described in section 4.1 in the OAuth2
Specification.
|
ClientCredentials
A confidential client, which attempts to authenticate itself using a
client-specific userid and password.
|
Implicit
A Public client, such as a browser javascript application, which uses
the Implicit token flow described in section 4.2 of the OAuth2
Specification.
|
OwnerCredentials
A confidential client, which attempts to authenticate using the
username and password of an existing account.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
in(ClientType... types)
Is the client type one of the passed in list of types?
|
static ClientType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientType AuthorizationGrant
public static final ClientType Implicit
public static final ClientType OwnerCredentials
public static final ClientType ClientCredentials
public static ClientType[] values()
for (ClientType c : ClientType.values()) System.out.println(c);
public static ClientType 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 Boolean in(ClientType... types)
types - An array of types to check against.Copyright © 2018 krotscheck.net. All rights reserved.