keycloak
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.keycloak.services.resources.LoginActionsServiceChecks.IsRedirectValid クラス
org.keycloak.services.resources.LoginActionsServiceChecks.IsRedirectValid の継承関係図
Inheritance graph
org.keycloak.services.resources.LoginActionsServiceChecks.IsRedirectValid 連携図
Collaboration graph

公開メンバ関数

 IsRedirectValid (ActionTokenContext<?> context, String redirectUri)
 
boolean test (JsonWebToken t) throws VerificationException
 
boolean test (T t) throws VerificationException
 

非公開変数類

final ActionTokenContext<?> context
 
final String redirectUri
 

詳解

Verifies whether the given redirect URL, when set, is valid for the given client.

構築子と解体子

◆ IsRedirectValid()

org.keycloak.services.resources.LoginActionsServiceChecks.IsRedirectValid.IsRedirectValid ( ActionTokenContext<?>  context,
String  redirectUri 
)
inline
207  {
208  this.context = context;
209  this.redirectUri = redirectUri;
210  }
final ActionTokenContext<?> context
Definition: LoginActionsServiceChecks.java:203
final String redirectUri
Definition: LoginActionsServiceChecks.java:205

関数詳解

◆ test() [1/2]

boolean org.keycloak.TokenVerifier< T extends JsonWebToken >.Predicate< T extends JsonWebToken >.test ( t) throws VerificationException
inherited

Performs a single check on the given token verifier.

引数
tToken, guaranteed to be non-null.
戻り値
例外
VerificationException

◆ test() [2/2]

boolean org.keycloak.services.resources.LoginActionsServiceChecks.IsRedirectValid.test ( JsonWebToken  t) throws VerificationException
inline
213  {
214  if (redirectUri == null) {
215  return true;
216  }
217 
219 
220  if (RedirectUtils.verifyRedirectUri(context.getUriInfo(), redirectUri, context.getRealm(), client) == null) {
221  throw new ExplainedTokenVerificationException(t, Errors.INVALID_REDIRECT_URI, Messages.INVALID_REDIRECT_URI);
222  }
223 
224  return true;
225  }
UriInfo getUriInfo()
Definition: ActionTokenContext.java:97
final ActionTokenContext<?> context
Definition: LoginActionsServiceChecks.java:203
Definition: ClientModel.java:27
AuthenticationSessionModel getAuthenticationSession()
Definition: ActionTokenContext.java:134
final String redirectUri
Definition: LoginActionsServiceChecks.java:205
RealmModel getRealm()
Definition: ActionTokenContext.java:93

メンバ詳解

◆ context

final ActionTokenContext<?> org.keycloak.services.resources.LoginActionsServiceChecks.IsRedirectValid.context
private

◆ redirectUri

final String org.keycloak.services.resources.LoginActionsServiceChecks.IsRedirectValid.redirectUri
private

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