keycloak
公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
org.keycloak.TokenVerifier< T extends JsonWebToken >.RealmUrlCheck クラス
org.keycloak.TokenVerifier< T extends JsonWebToken >.RealmUrlCheck の継承関係図
Inheritance graph
org.keycloak.TokenVerifier< T extends JsonWebToken >.RealmUrlCheck 連携図
Collaboration graph

公開メンバ関数

 RealmUrlCheck (String realmUrl)
 
boolean test (JsonWebToken t) throws VerificationException
 
boolean test (T t) throws VerificationException
 

非公開変数類

final String realmUrl
 

静的非公開変数類

static final RealmUrlCheck NULL_INSTANCE = new RealmUrlCheck(null)
 

詳解

構築子と解体子

◆ RealmUrlCheck()

org.keycloak.TokenVerifier< T extends JsonWebToken >.RealmUrlCheck.RealmUrlCheck ( String  realmUrl)
inline
99  {
100  this.realmUrl = realmUrl;
101  }
final String realmUrl
Definition: TokenVerifier.java:97

関数詳解

◆ 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.TokenVerifier< T extends JsonWebToken >.RealmUrlCheck.test ( JsonWebToken  t) throws VerificationException
inline
104  {
105  if (this.realmUrl == null) {
106  throw new VerificationException("Realm URL not set");
107  }
108 
109  if (! this.realmUrl.equals(t.getIssuer())) {
110  throw new VerificationException("Invalid token issuer. Expected '" + this.realmUrl + "', but was '" + t.getIssuer() + "'");
111  }
112 
113  return true;
114  }
final String realmUrl
Definition: TokenVerifier.java:97

メンバ詳解

◆ NULL_INSTANCE

final RealmUrlCheck org.keycloak.TokenVerifier< T extends JsonWebToken >.RealmUrlCheck.NULL_INSTANCE = new RealmUrlCheck(null)
staticprivate

◆ realmUrl

final String org.keycloak.TokenVerifier< T extends JsonWebToken >.RealmUrlCheck.realmUrl
private

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