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

公開メンバ関数

String toString ()
 
String getParamName ()
 

静的公開メンバ関数

static AuthorizationGrantType fromString (String param)
 

公開変数類

 AUTHORIZATION_CODE =("authorization_code")
 
 IMPLICIT =("implicit")
 
 CLIENT_CREDENTIALS =("client_credentials")
 
 RESOURCE_OWNER_PASSWORD_CREDENTIALS =("resource_owner_password_credentials")
 

非公開メンバ関数

 AuthorizationGrantType (String paramName)
 

非公開変数類

final String paramName
 

詳解

An authorization grant is a credential representing the resource owner's authorization (to access its protected resources) used by the client to obtain an access token. This specification defines four grant types: authorization code, implicit, resource owner password credentials, and client credentials.

著者
Javier Rojas Date: 10.07.2011

構築子と解体子

◆ AuthorizationGrantType()

org.xdi.oxauth.model.common.AuthorizationGrantType.AuthorizationGrantType ( String  paramName)
inlineprivate
63  {
64  this.paramName = paramName;
65  }
final String paramName
Definition: AuthorizationGrantType.java:61

関数詳解

◆ fromString()

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

Returns the corresponding AuthorizationGrantType for a given parameter.

引数
paramThe parameter.
戻り値
The corresponding authorization grant type if found, otherwise null.
74  {
75  if (param != null) {
76  for (AuthorizationGrantType agt : AuthorizationGrantType.values()) {
77  if (param.equals(agt.paramName)) {
78  return agt;
79  }
80  }
81  }
82  return null;
83  }
AuthorizationGrantType(String paramName)
Definition: AuthorizationGrantType.java:63

◆ getParamName()

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

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

95  {
96  return paramName;
97  }
final String paramName
Definition: AuthorizationGrantType.java:61

◆ toString()

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

Returns a string representation of the object. In this case the parameter name for the authorization grant type parameter.

90  {
91  return paramName;
92  }
final String paramName
Definition: AuthorizationGrantType.java:61

メンバ詳解

◆ AUTHORIZATION_CODE

org.xdi.oxauth.model.common.AuthorizationGrantType.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.AuthorizationGrantType.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.AuthorizationGrantType.IMPLICIT =("implicit")

The implicit grant is a simplified authorization code flow optimized for clients implemented in a browser using a scripting language such as JavaScript. In the implicit flow, instead of issuing the client an authorization code, the client is issued an access token directly (as the result of the resource owner authorization). The grant type is implicit as no intermediate credentials (such as an authorization code) are issued (and later used to obtain an access token).

◆ paramName

final String org.xdi.oxauth.model.common.AuthorizationGrantType.paramName
private

◆ RESOURCE_OWNER_PASSWORD_CREDENTIALS

org.xdi.oxauth.model.common.AuthorizationGrantType.RESOURCE_OWNER_PASSWORD_CREDENTIALS =("resource_owner_password_credentials")

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).


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