gluu
|
公開メンバ関数 | |
AuthorizeClient (String url) | |
String | getHttpMethod () |
AuthorizationResponse | execAuthorizationCodeGrant (String clientId, List< String > scopes, String redirectUri, String nonce, String state, String req, String reqUri, Display display, List< Prompt > prompt) |
AuthorizationResponse | execImplicitGrant (String clientId, List< String > scopes, String redirectUri, String nonce, String state, String req, String reqUri, Display display, List< Prompt > prompt) |
AuthorizationResponse | exec () |
AuthorizationResponse | exec (ClientExecutor clientExecutor) |
String | getUrl () |
void | setUrl (String url) |
T | getRequest () |
void | setRequest (T request) |
V | getResponse () |
void | setResponse (V response) |
ClientExecutor | getExecutor () |
void | setExecutor (ClientExecutor executor) |
String | getRequestAsString () |
String | getResponseAsString () |
void | closeConnection () |
List< Cookie > | getCookies () |
Map< String, String > | getHeaders () |
静的公開メンバ関数 | |
static void | putAllFormParameters (ClientRequest p_clientRequest, BaseRequest p_request) |
限定公開メンバ関数 | |
void | addReqParam (String p_key, HasParamName p_value) |
void | addReqParam (String p_key, String p_value) |
void | initClientRequest () |
限定公開変数類 | |
T | request |
V | response |
ClientRequest | clientRequest |
ClientResponse< String > | clientResponse |
ClientExecutor | executor |
静的変数 | |
static String | NO_REDIRECT_HEADER = "X-Gluu-NoRedirect" |
非公開メンバ関数 | |
AuthorizationResponse | exec_ () throws Exception |
静的非公開変数類 | |
static final Logger | LOG = Logger.getLogger(AuthorizeClient.class) |
Encapsulates functionality to make authorization request calls to an authorization server via REST Services.
|
inline |
Constructs an authorize client by providing a REST url where the authorize service is located.
url | The REST Service location. |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inline |
Executes the call to the REST Service and processes the response.
|
inline |
|
inlineprivate |
|
inline |
The authorization code grant type is used to obtain both access tokens and refresh tokens and is optimized for confidential clients. As a redirection-based flow, the client must be capable of interacting with the resource owner's user-agent (typically a web browser) and capable of receiving incoming requests (via redirection) from the authorization server.
clientId | The client identifier. This parameter is required. |
scopes | The scope of the access request. This parameter is optional. |
redirectUri | The redirection URI. This parameter is optional. |
nonce | A string value used to associate a user agent session with an ID Token, and to mitigate replay attacks. forgery. This parameter is recommended. |
state | An opaque value used by the client to maintain state between the request and callback. The authorization server includes this value when redirecting the user-agent back to the client. The parameter should be used for preventing cross-site request forgery. |
req | A JWT encoded OpenID Request Object. |
reqUri | An URL that points to an OpenID Request Object. |
display | An ASCII string value that specifies how the Authorization Server displays the authentication page to the End-User. |
prompt | A space delimited list of ASCII strings that can contain the values login, consent, select_account, and none. |
|
inline |
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.
As a redirection-based flow, the client must be capable of interacting with the resource owner's user-agent (typically a web browser) and capable of receiving incoming requests (via redirection) from the authorization server.
Unlike the authorization code grant type in which the client makes separate requests for authorization and access token, the client receives the access token as the result of the authorization request.
The implicit grant type does not include client authentication, and relies on the presence of the resource owner and the registration of the redirection URI. Because the access token is encoded into the redirection URI, it may be exposed to the resource owner and other applications residing on its device.
clientId | The client identifier. This parameter is required. |
scopes | The scope of the access request. This parameter is optional. |
redirectUri | The redirection URI. This parameter is optional. |
nonce | A string value used to associate a user agent session with an ID Token, and to mitigate replay attacks. forgery. This parameter is recommended. |
state | An opaque value used by the client to maintain state between the request and callback. The authorization server includes this value when redirecting the user-agent back to the client. The parameter should be used for preventing cross-site request forgery. |
req | A JWT encoded OpenID Request Object. |
reqUri | An URL that points to an OpenID Request Object. |
display | An ASCII string value that specifies how the Authorization Server displays the authentication page to the End-User. |
prompt | A space delimited list of ASCII strings that can contain the values login, consent, select_account, and none. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlinestaticinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
staticprivate |
|
staticpackage |
|
protectedinherited |
|
protectedinherited |