Serializable
, Comparable<OauthToken>
, org.refcodes.mixin.PathAccessor
, HeaderFieldAccessor
public enum OauthToken extends Enum<OauthToken> implements org.refcodes.mixin.PathAccessor, HeaderFieldAccessor
HeaderFieldAccessor.HeaderFieldBuilder<B extends HeaderFieldAccessor.HeaderFieldBuilder<B>>, HeaderFieldAccessor.HeaderFieldMutator, HeaderFieldAccessor.HeaderFieldProperty
Enum Constant | Description |
---|---|
ACCESS_TOKEN |
The access token, see also
TokenType . |
EXPIRES_IN |
|
REFRESH_TOKEN |
|
SCOPE |
OAuth scopes let you specify exactly how your application needs to access
a user's resource.
|
TOKEN_TYPE |
Modifier and Type | Method | Description |
---|---|---|
static OauthToken |
fromHeaderField(HeaderField aHeaderField) |
|
static OauthToken |
fromPath(String aPath) |
|
HeaderField |
getHeaderField() |
Retrieves the
HeaderField from the HeaderField property. |
String |
getPath() |
|
static OauthToken |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static OauthToken[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OauthToken SCOPE
public static final OauthToken EXPIRES_IN
public static final OauthToken REFRESH_TOKEN
public static final OauthToken TOKEN_TYPE
public static final OauthToken ACCESS_TOKEN
TokenType
.public static OauthToken[] values()
for (OauthToken c : OauthToken.values()) System.out.println(c);
public static OauthToken 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 HeaderField getHeaderField()
HeaderField
from the HeaderField
property.getHeaderField
in interface HeaderFieldAccessor
HeaderField
stored by the HeaderField
property.public String getPath()
getPath
in interface org.refcodes.mixin.PathAccessor
public static OauthToken fromPath(String aPath)
public static OauthToken fromHeaderField(HeaderField aHeaderField)
Copyright © 2018. All rights reserved.