gluu
公開メンバ関数 | 静的公開メンバ関数 | 公開変数類 | 非公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
列挙 org.xdi.oxauth.model.common.GrantType 詳解
org.xdi.oxauth.model.common.GrantType の継承関係図
Inheritance graph
org.xdi.oxauth.model.common.GrantType 連携図
Collaboration graph

公開メンバ関数

String getParamName ()
 
String getValue ()
 
Enum<? extends LdapEnum > resolveByValue (String value)
 
String toString ()
 

静的公開メンバ関数

 [static initializer]
 
static GrantType fromString (String param)
 
static String [] toStringArray (GrantType[] grantTypes)
 
static GrantType getByValue (String value)
 

公開変数類

 AUTHORIZATION_CODE =("authorization_code")
 
 IMPLICIT =("implicit")
 
 RESOURCE_OWNER_PASSWORD_CREDENTIALS =("password")
 
 CLIENT_CREDENTIALS =("client_credentials")
 
 REFRESH_TOKEN =("refresh_token")
 
 OXAUTH_UMA_TICKET =("urn:ietf:params:oauth:grant-type:uma-ticket")
 

非公開メンバ関数

 GrantType ()
 
 GrantType (String value)
 

非公開変数類

final String value
 

静的非公開変数類

static Map< String, GrantTypemapByValues = new HashMap<String, GrantType>()
 

詳解

This class allows to enumerate and identify the possible values of the parameter grant_type for access token requests.

著者
Javier Rojas Blum
バージョン
July 18, 2017

構築子と解体子

◆ GrantType() [1/2]

org.xdi.oxauth.model.common.GrantType.GrantType ( )
inlineprivate
89  {
90  this.value = null;
91  }
final String value
Definition: GrantType.java:79

◆ GrantType() [2/2]

org.xdi.oxauth.model.common.GrantType.GrantType ( String  value)
inlineprivate
93  {
94  this.value = value;
95  }
final String value
Definition: GrantType.java:79

関数詳解

◆ [static initializer]()

org.xdi.oxauth.model.common.GrantType.[static initializer] ( )
inlinestatic

◆ fromString()

static GrantType org.xdi.oxauth.model.common.GrantType.fromString ( String  param)
inlinestatic

Returns the corresponding GrantType for a parameter grant_type of the access token requests. For the extension grant type, the parameter should be a valid URI.

引数
paramThe grant_type parameter.
戻り値
The corresponding grant type if found, otherwise null.
121  {
122  if (param != null) {
123  for (GrantType gt : GrantType.values()) {
124  if (param.equals(gt.value)) {
125  return gt;
126  }
127  }
128  }
129 
130  return null;
131  }
GrantType()
Definition: GrantType.java:89

◆ getByValue()

static GrantType org.xdi.oxauth.model.common.GrantType.getByValue ( String  value)
inlinestatic
146  {
147  return mapByValues.get(value);
148  }
final String value
Definition: GrantType.java:79
static Map< String, GrantType > mapByValues
Definition: GrantType.java:81

◆ getParamName()

String org.xdi.oxauth.model.common.GrantType.getParamName ( )
inline

Gets param name.

戻り値
param name

org.xdi.oxauth.model.common.HasParamNameを実装しています。

102  {
103  return value;
104  }
final String value
Definition: GrantType.java:79

◆ getValue()

String org.xdi.oxauth.model.common.GrantType.getValue ( )
inline
107  {
108  return value;
109  }
final String value
Definition: GrantType.java:79

◆ resolveByValue()

Enum<? extends LdapEnum> org.xdi.oxauth.model.common.GrantType.resolveByValue ( String  value)
inline
150  {
151  return getByValue(value);
152  }
final String value
Definition: GrantType.java:79
static GrantType getByValue(String value)
Definition: GrantType.java:146

◆ toString()

String org.xdi.oxauth.model.common.GrantType.toString ( )
inline

Returns a string representation of the object. In this case the parameter name for the grant_type parameter.

戻り値
The string representation of the object.
162  {
163  return value;
164  }
final String value
Definition: GrantType.java:79

◆ toStringArray()

static String [] org.xdi.oxauth.model.common.GrantType.toStringArray ( GrantType []  grantTypes)
inlinestatic
133  {
134  if (grantTypes == null) {
135  return null;
136  }
137 
138  String[] resultGrantTypes = new String[grantTypes.length];
139  for (int i = 0; i < grantTypes.length; i++) {
140  resultGrantTypes[i] = grantTypes[i].getValue();
141  }
142 
143  return resultGrantTypes;
144  }

メンバ詳解

◆ AUTHORIZATION_CODE

org.xdi.oxauth.model.common.GrantType.AUTHORIZATION_CODE =("authorization_code")

The authorization code is obtained by using an authorization server as an intermediary between the client and resource owner. Instead of requesting authorization directly from the resource owner, the client directs the resource owner to an authorization server (via its user- agent as defined in [RFC2616]), which in turn directs the resource owner back to the client with the authorization code.

◆ CLIENT_CREDENTIALS

org.xdi.oxauth.model.common.GrantType.CLIENT_CREDENTIALS =("client_credentials")

The client credentials (or other forms of client authentication) can be used as an authorization grant when the authorization scope is limited to the protected resources under the control of the client, or to protected resources previously arranged with the authorization server. Client credentials are used as an authorization grant typically when the client is acting on its own behalf (the client is also the resource owner), or is requesting access to protected resources based on an authorization previously arranged with the authorization server.

◆ IMPLICIT

org.xdi.oxauth.model.common.GrantType.IMPLICIT =("implicit")

The implicit grant type is used to obtain access tokens (it does not support the issuance of refresh tokens) and is optimized for public clients known to operate a particular redirection URI. These clients are typically implemented in a browser using a scripting language such as JavaScript.

◆ mapByValues

static Map<String, GrantType> org.xdi.oxauth.model.common.GrantType.mapByValues = new HashMap<String, GrantType>()
staticprivate

◆ OXAUTH_UMA_TICKET

org.xdi.oxauth.model.common.GrantType.OXAUTH_UMA_TICKET =("urn:ietf:params:oauth:grant-type:uma-ticket")

Representing a requesting party, to use a permission ticket to request an OAuth 2.0 access token to gain access to a protected resource asynchronously from the time a resource owner grants access.

◆ REFRESH_TOKEN

org.xdi.oxauth.model.common.GrantType.REFRESH_TOKEN =("refresh_token")

If the authorization server issued a refresh token to the client, the client makes a refresh request to the token endpoint.

◆ RESOURCE_OWNER_PASSWORD_CREDENTIALS

org.xdi.oxauth.model.common.GrantType.RESOURCE_OWNER_PASSWORD_CREDENTIALS =("password")

The resource owner password credentials (i.e. username and password) can be used directly as an authorization grant to obtain an access token. The credentials should only be used when there is a high degree of trust between the resource owner and the client (e.g. its device operating system or a highly privileged application), and when other authorization grant types are not available (such as an authorization code).

◆ value

final String org.xdi.oxauth.model.common.GrantType.value
private

次のファイルからこの列挙についての詳解を抽出しました: