gluu
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.xdi.oxauth.client.EndSessionRequest クラス
org.xdi.oxauth.client.EndSessionRequest の継承関係図
Inheritance graph
org.xdi.oxauth.client.EndSessionRequest 連携図
Collaboration graph

公開メンバ関数

 EndSessionRequest (String idTokenHint, String postLogoutRedirectUri, String state)
 
String getIdTokenHint ()
 
void setAccessToken (String idTokenHint)
 
String getPostLogoutRedirectUri ()
 
void setPostLogoutRedirectUri (String postLogoutRedirectUri)
 
String getSessionId ()
 
void setSessionId (String p_sessionId)
 
String getState ()
 
void setState (String state)
 
String getQueryString ()
 
String getContentType ()
 
void setContentType (String contentType)
 
String getMediaType ()
 
void setMediaType (String mediaType)
 
String getAuthUsername ()
 
 getAuthUsername ()
 
void setAuthUsername (String authUsername)
 
 setAuthUsername ($authUsername)
 
String getAuthPassword ()
 
 getAuthPassword ()
 
void setAuthPassword (String authPassword)
 
 setAuthPassword ($authPassword)
 
AuthenticationMethod getAuthenticationMethod ()
 
void setAuthenticationMethod (AuthenticationMethod authenticationMethod)
 
AuthorizationMethod getAuthorizationMethod ()
 
void setAuthorizationMethod (AuthorizationMethod authorizationMethod)
 
Map< String, String > getCustomParameters ()
 
 getCustomParameters ()
 
void addCustomParameter (String paramName, String paramValue)
 
 addCustomParameter ($paramName, $paramValue)
 
boolean hasCredentials ()
 
 hasCredentials ()
 
String getCredentials () throws UnsupportedEncodingException
 
 getCredentials ()
 
String getEncodedCredentials ()
 
 getEncodedCredentials ()
 
Map< String, String > getParameters ()
 
 getParameters ()
 
JSONObject getJSONParameters () throws JSONException
 
 queryString ()
 

非公開変数類

String idTokenHint
 
String postLogoutRedirectUri
 
String sessionId
 
String state
 

詳解

Represents an end session request to send to the authorization server.

著者
Javier Rojas Blum
バージョン
August 9, 2017

構築子と解体子

◆ EndSessionRequest()

org.xdi.oxauth.client.EndSessionRequest.EndSessionRequest ( String  idTokenHint,
String  postLogoutRedirectUri,
String  state 
)
inline

Constructs an end session request.

32  {
33  this.idTokenHint = idTokenHint;
35  this.state = state;
36  }
String idTokenHint
Definition: EndSessionRequest.java:24
String state
Definition: EndSessionRequest.java:27
String postLogoutRedirectUri
Definition: EndSessionRequest.java:25

関数詳解

◆ addCustomParameter() [1/2]

org.xdi.oxauth.client.BaseRequest.addCustomParameter (   $paramName,
  $paramValue 
)
inherited
39  {
40  $this->customParameters[$paramName] = $paramValue;
41  }
Map< String, String > customParameters
Definition: BaseRequest.java:36

◆ addCustomParameter() [2/2]

void org.xdi.oxauth.client.BaseRequest.addCustomParameter ( String  paramName,
String  paramValue 
)
inlineinherited
94  {
95  customParameters.put(paramName, paramValue);
96  }
Map< String, String > customParameters
Definition: BaseRequest.java:36

◆ getAuthenticationMethod()

AuthenticationMethod org.xdi.oxauth.client.BaseRequest.getAuthenticationMethod ( )
inlineinherited
74  {
75  return authenticationMethod;
76  }
AuthenticationMethod authenticationMethod
Definition: BaseRequest.java:34

◆ getAuthorizationMethod()

AuthorizationMethod org.xdi.oxauth.client.BaseRequest.getAuthorizationMethod ( )
inlineinherited
82  {
83  return authorizationMethod;
84  }
AuthorizationMethod authorizationMethod
Definition: BaseRequest.java:35

◆ getAuthPassword() [1/2]

org.xdi.oxauth.client.BaseRequest.getAuthPassword ( )
inherited
27  {
28  return $this->authPassword;
29  }
$authPassword
Definition: BaseRequest.php:12

◆ getAuthPassword() [2/2]

String org.xdi.oxauth.client.BaseRequest.getAuthPassword ( )
inlineinherited
66  {
67  return authPassword;
68  }
String authPassword
Definition: BaseRequest.java:33

◆ getAuthUsername() [1/2]

org.xdi.oxauth.client.BaseRequest.getAuthUsername ( )
inherited
19  {
20  return $this->authUsername;
21  }
$authUsername
Definition: BaseRequest.php:11

◆ getAuthUsername() [2/2]

String org.xdi.oxauth.client.BaseRequest.getAuthUsername ( )
inlineinherited
58  {
59  return authUsername;
60  }
String authUsername
Definition: BaseRequest.java:32

◆ getContentType()

String org.xdi.oxauth.client.BaseRequest.getContentType ( )
inlineinherited
42  {
43  return contentType;
44  }
String contentType
Definition: BaseRequest.java:30

◆ getCredentials() [1/2]

org.xdi.oxauth.client.BaseRequest.getCredentials ( )
inherited
49  {
50  return $this->authUsername . ':' . $this->authPassword;
51  }
$authPassword
Definition: BaseRequest.php:12
String authUsername
Definition: BaseRequest.java:32

◆ getCredentials() [2/2]

String org.xdi.oxauth.client.BaseRequest.getCredentials ( ) throws UnsupportedEncodingException
inlineinherited

Returns the client credentials (URL encoded).

戻り値
The client credentials.
109  {
110  return URLEncoder.encode(authUsername, Util.UTF8_STRING_ENCODING)
111  + ":"
112  + URLEncoder.encode(authPassword, Util.UTF8_STRING_ENCODING);
113  }
String authPassword
Definition: BaseRequest.java:33
String authUsername
Definition: BaseRequest.java:32

◆ getCustomParameters() [1/2]

org.xdi.oxauth.client.BaseRequest.getCustomParameters ( )
inherited
35  {
37  }
$customParameters
Definition: BaseRequest.php:13

◆ getCustomParameters() [2/2]

Map<String, String> org.xdi.oxauth.client.BaseRequest.getCustomParameters ( )
inlineinherited
90  {
91  return customParameters;
92  }
Map< String, String > customParameters
Definition: BaseRequest.java:36

◆ getEncodedCredentials() [1/2]

org.xdi.oxauth.client.BaseRequest.getEncodedCredentials ( )
inherited
53  {
54  if($this->hasCredentials()){
55  return base64_encode($this->getCredentials());
56  }
57  return NULL;
58  }
boolean hasCredentials()
Definition: BaseRequest.java:98
String getCredentials()
Definition: BaseRequest.java:109

◆ getEncodedCredentials() [2/2]

String org.xdi.oxauth.client.BaseRequest.getEncodedCredentials ( )
inlineinherited

Returns the client credentials encoded using base64.

戻り値
The encoded client credentials.
120  {
121  try {
122  if (hasCredentials()) {
123  return Base64.encodeBase64String(Util.getBytes(getCredentials()));
124  }
125  } catch (UnsupportedEncodingException e) {
126  e.printStackTrace();
127  }
128 
129  return null;
130  }
boolean hasCredentials()
Definition: BaseRequest.java:98
String getCredentials()
Definition: BaseRequest.java:109

◆ getIdTokenHint()

String org.xdi.oxauth.client.EndSessionRequest.getIdTokenHint ( )
inline

Returns the issued ID Token.

戻り値
The issued ID Token.
43  {
44  return idTokenHint;
45  }
String idTokenHint
Definition: EndSessionRequest.java:24

◆ getJSONParameters()

JSONObject org.xdi.oxauth.client.BaseRequest.getJSONParameters ( ) throws JSONException
inlineinherited
136  {
137  return EMPTY_JSON_OBJECT;
138  }
static final JSONObject EMPTY_JSON_OBJECT
Definition: BaseRequest.java:28

◆ getMediaType()

String org.xdi.oxauth.client.BaseRequest.getMediaType ( )
inlineinherited
50  {
51  return mediaType;
52  }
String mediaType
Definition: BaseRequest.java:31

◆ getParameters() [1/2]

org.xdi.oxauth.client.BaseRequest.getParameters ( )
inherited
60  {
61  return $this->EMPTY_MAP;
62  }
$EMPTY_MAP
Definition: BaseRequest.php:10

◆ getParameters() [2/2]

Map<String, String> org.xdi.oxauth.client.BaseRequest.getParameters ( )
inlineinherited
132  {
133  return EMPTY_MAP;
134  }
static final Map< String, String > EMPTY_MAP
Definition: BaseRequest.java:27

◆ getPostLogoutRedirectUri()

String org.xdi.oxauth.client.EndSessionRequest.getPostLogoutRedirectUri ( )
inline

Returns the URL to which the RP is requesting that the End-User's User-Agent be redirected after a logout has been performed.

戻り値
The post logout redirection URI.
62  {
63  return postLogoutRedirectUri;
64  }
String postLogoutRedirectUri
Definition: EndSessionRequest.java:25

◆ getQueryString()

String org.xdi.oxauth.client.EndSessionRequest.getQueryString ( )
inline

Returns a query string with the parameters of the end session request. Any null or empty parameter will be omitted.

戻り値
A query string of parameters.
125  {
126  StringBuilder queryStringBuilder = new StringBuilder();
127 
128  try {
129  if (StringUtils.isNotBlank(idTokenHint)) {
130  queryStringBuilder.append(EndSessionRequestParam.ID_TOKEN_HINT)
131  .append("=")
132  .append(idTokenHint);
133  }
134  if (StringUtils.isNotBlank(postLogoutRedirectUri)) {
135  queryStringBuilder.append("&")
136  .append(EndSessionRequestParam.POST_LOGOUT_REDIRECT_URI)
137  .append("=")
138  .append(URLEncoder.encode(postLogoutRedirectUri, Util.UTF8_STRING_ENCODING));
139  }
140  if (StringUtils.isNotBlank(state)) {
141  queryStringBuilder.append("&")
142  .append(EndSessionRequestParam.STATE)
143  .append("=")
144  .append(URLEncoder.encode(state, Util.UTF8_STRING_ENCODING));
145  }
146 
147  if (StringUtils.isNotBlank(sessionId)) {
148  queryStringBuilder.append("&")
149  .append(EndSessionRequestParam.SESSION_ID)
150  .append("=")
151  .append(URLEncoder.encode(sessionId, Util.UTF8_STRING_ENCODING));
152  }
153  } catch (UnsupportedEncodingException e) {
154  e.printStackTrace();
155  }
156 
157  return queryStringBuilder.toString();
158  }
String idTokenHint
Definition: EndSessionRequest.java:24
String state
Definition: EndSessionRequest.java:27
String sessionId
Definition: EndSessionRequest.java:26
String postLogoutRedirectUri
Definition: EndSessionRequest.java:25

◆ getSessionId()

String org.xdi.oxauth.client.EndSessionRequest.getSessionId ( )
inline

Gets session id.

戻り値
session id.
81  {
82  return sessionId;
83  }
String sessionId
Definition: EndSessionRequest.java:26

◆ getState()

String org.xdi.oxauth.client.EndSessionRequest.getState ( )
inline

Returns the state. The state is an opaque value used by the RP to maintain state between the logout request and the callback to the endpoint specified by the post_logout_redirect_uri parameter. If included in the logout request, the OP passes this value back to the RP using the state query parameter when redirecting the User Agent back to the RP.

戻り値
The state.
102  {
103  return state;
104  }
String state
Definition: EndSessionRequest.java:27

◆ hasCredentials() [1/2]

org.xdi.oxauth.client.BaseRequest.hasCredentials ( )
inherited
43  {
44  return isset($this->authUsername, $this->authPassword)
45  && empty($this->authUsername)
46  && empty($this->authPassword);
47  }
String authPassword
Definition: BaseRequest.java:33
String authUsername
Definition: BaseRequest.java:32

◆ hasCredentials() [2/2]

boolean org.xdi.oxauth.client.BaseRequest.hasCredentials ( )
inlineinherited
98  {
99  return authUsername != null && authPassword != null
100  && !authUsername.isEmpty()
101  && !authPassword.isEmpty();
102  }
String authPassword
Definition: BaseRequest.java:33
String authUsername
Definition: BaseRequest.java:32

◆ queryString()

org.xdi.oxauth.client.BaseRequest.queryString ( )
abstractinherited

◆ setAccessToken()

void org.xdi.oxauth.client.EndSessionRequest.setAccessToken ( String  idTokenHint)
inline

Sets the issued ID Token.

引数
idTokenHintThe issued ID Token.
52  {
53  this.idTokenHint = idTokenHint;
54  }
String idTokenHint
Definition: EndSessionRequest.java:24

◆ setAuthenticationMethod()

void org.xdi.oxauth.client.BaseRequest.setAuthenticationMethod ( AuthenticationMethod  authenticationMethod)
inlineinherited
78  {
80  }
AuthenticationMethod authenticationMethod
Definition: BaseRequest.java:34

◆ setAuthorizationMethod()

void org.xdi.oxauth.client.BaseRequest.setAuthorizationMethod ( AuthorizationMethod  authorizationMethod)
inlineinherited
86  {
88  }
AuthorizationMethod authorizationMethod
Definition: BaseRequest.java:35

◆ setAuthPassword() [1/2]

org.xdi.oxauth.client.BaseRequest.setAuthPassword (   $authPassword)
inherited
31  {
32  $this->authPassword = $authPassword;
33  }
$authPassword
Definition: BaseRequest.php:12
String authPassword
Definition: BaseRequest.java:33

◆ setAuthPassword() [2/2]

void org.xdi.oxauth.client.BaseRequest.setAuthPassword ( String  authPassword)
inlineinherited
70  {
72  }
String authPassword
Definition: BaseRequest.java:33

◆ setAuthUsername() [1/2]

org.xdi.oxauth.client.BaseRequest.setAuthUsername (   $authUsername)
inherited
23  {
24  $this->authUsername = $authUsername;
25  }
$authUsername
Definition: BaseRequest.php:11
String authUsername
Definition: BaseRequest.java:32

◆ setAuthUsername() [2/2]

void org.xdi.oxauth.client.BaseRequest.setAuthUsername ( String  authUsername)
inlineinherited
62  {
64  }
String authUsername
Definition: BaseRequest.java:32

◆ setContentType()

void org.xdi.oxauth.client.BaseRequest.setContentType ( String  contentType)
inlineinherited
46  {
47  this.contentType = contentType;
48  }
String contentType
Definition: BaseRequest.java:30

◆ setMediaType()

void org.xdi.oxauth.client.BaseRequest.setMediaType ( String  mediaType)
inlineinherited
54  {
55  this.mediaType = mediaType;
56  }
String mediaType
Definition: BaseRequest.java:31

◆ setPostLogoutRedirectUri()

void org.xdi.oxauth.client.EndSessionRequest.setPostLogoutRedirectUri ( String  postLogoutRedirectUri)
inline

Sets the URL to which the RP is requesting that the End-User's User-Agent be redirected after a logout has been performed.

引数
postLogoutRedirectUriThe post logout redirection URI.
72  {
74  }
String postLogoutRedirectUri
Definition: EndSessionRequest.java:25

◆ setSessionId()

void org.xdi.oxauth.client.EndSessionRequest.setSessionId ( String  p_sessionId)
inline

Sets session id.

引数
p_sessionIdsession id
90  {
91  sessionId = p_sessionId;
92  }
String sessionId
Definition: EndSessionRequest.java:26

◆ setState()

void org.xdi.oxauth.client.EndSessionRequest.setState ( String  state)
inline

Sets the state. The state is an opaque value used by the RP to maintain state between the logout request and the callback to the endpoint specified by the post_logout_redirect_uri parameter. If included in the logout request, the OP passes this value back to the RP using the state query parameter when redirecting the User Agent back to the RP.

引数
statehe state.
114  {
115  this.state = state;
116  }
String state
Definition: EndSessionRequest.java:27

メンバ詳解

◆ idTokenHint

String org.xdi.oxauth.client.EndSessionRequest.idTokenHint
private

◆ postLogoutRedirectUri

String org.xdi.oxauth.client.EndSessionRequest.postLogoutRedirectUri
private

◆ sessionId

String org.xdi.oxauth.client.EndSessionRequest.sessionId
private

◆ state

String org.xdi.oxauth.client.EndSessionRequest.state
private

このクラス詳解は次のファイルから抽出されました: