keycloak-service
クラス | 公開メンバ関数 | 全メンバ一覧
org.keycloak.authentication.actiontoken.resetcred.ResetCredentialsActionTokenHandler クラス
org.keycloak.authentication.actiontoken.resetcred.ResetCredentialsActionTokenHandler の継承関係図
Inheritance graph
org.keycloak.authentication.actiontoken.resetcred.ResetCredentialsActionTokenHandler 連携図
Collaboration graph

クラス

class  ResetCredsAuthenticationProcessor
 

公開メンバ関数

 ResetCredentialsActionTokenHandler ()
 
Predicate<? super ResetCredentialsActionToken > [] getVerifiers (ActionTokenContext< ResetCredentialsActionToken > tokenContext)
 
Response handleToken (ResetCredentialsActionToken token, ActionTokenContext tokenContext)
 
boolean canUseTokenRepeatedly (ResetCredentialsActionToken token, ActionTokenContext tokenContext)
 
ActionTokenHandler< T > create (KeycloakSession session)
 
void init (Scope config)
 
void postInit (KeycloakSessionFactory factory)
 
String getId ()
 
void close ()
 
Class< T > getTokenClass ()
 
EventType eventType ()
 
String getDefaultErrorMessage ()
 
String getDefaultEventError ()
 
String getAuthenticationSessionIdFromToken (T token, ActionTokenContext< T > tokenContext, AuthenticationSessionModel currentAuthSession)
 
AuthenticationSessionModel startFreshAuthenticationSession (T token, ActionTokenContext< T > tokenContext)
 
boolean canUseTokenRepeatedly (T token, ActionTokenContext< T > tokenContext)
 

詳解

著者
hmlnarik

構築子と解体子

◆ ResetCredentialsActionTokenHandler()

org.keycloak.authentication.actiontoken.resetcred.ResetCredentialsActionTokenHandler.ResetCredentialsActionTokenHandler ( )
inline
41  {
42  super(
43  ResetCredentialsActionToken.TOKEN_TYPE,
44  ResetCredentialsActionToken.class,
45  Messages.RESET_CREDENTIAL_NOT_ALLOWED,
46  EventType.RESET_PASSWORD,
47  Errors.NOT_ALLOWED
48  );
49 
50  }

関数詳解

◆ canUseTokenRepeatedly() [1/2]

boolean org.keycloak.authentication.actiontoken.resetcred.ResetCredentialsActionTokenHandler.canUseTokenRepeatedly ( ResetCredentialsActionToken  token,
ActionTokenContext  tokenContext 
)
inline
75  {
76  return false;
77  }

◆ canUseTokenRepeatedly() [2/2]

boolean org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.canUseTokenRepeatedly ( token,
ActionTokenContext< T >  tokenContext 
)
inlineinherited
102  {
103  return true;
104  }

◆ close()

void org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.close ( )
inlineinherited
66  {
67  }

◆ create()

ActionTokenHandler<T> org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.create ( KeycloakSession  session)
inlineinherited
48  {
49  return this;
50  }

◆ eventType()

EventType org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.eventType ( )
inlineinherited
75  {
76  return this.defaultEventType;
77  }
final EventType defaultEventType
Definition: AbstractActionTokenHander.java:36

◆ getAuthenticationSessionIdFromToken()

String org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.getAuthenticationSessionIdFromToken ( token,
ActionTokenContext< T >  tokenContext,
AuthenticationSessionModel  currentAuthSession 
)
inlineinherited
90  {
91  return token instanceof DefaultActionToken ? ((DefaultActionToken) token).getCompoundAuthenticationSessionId() : null;
92  }

◆ getDefaultErrorMessage()

String org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.getDefaultErrorMessage ( )
inlineinherited
80  {
81  return this.defaultErrorMessage;
82  }

◆ getDefaultEventError()

String org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.getDefaultEventError ( )
inlineinherited
85  {
86  return this.defaultEventError;
87  }

◆ getId()

String org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.getId ( )
inlineinherited
61  {
62  return this.id;
63  }

◆ getTokenClass()

Class<T> org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.getTokenClass ( )
inlineinherited
70  {
71  return this.tokenClass;
72  }
final Class< T > tokenClass
Definition: AbstractActionTokenHander.java:34

◆ getVerifiers()

Predicate<? super ResetCredentialsActionToken> [] org.keycloak.authentication.actiontoken.resetcred.ResetCredentialsActionTokenHandler.getVerifiers ( ActionTokenContext< ResetCredentialsActionToken tokenContext)
inline
53  {
54  return new Predicate[] {
55  TokenUtils.checkThat(tokenContext.getRealm()::isResetPasswordAllowed, Errors.NOT_ALLOWED, Messages.RESET_CREDENTIAL_NOT_ALLOWED),
56 
57  new IsActionRequired(tokenContext, Action.AUTHENTICATE)
58  };
59  }
static Predicate< JsonWebToken > checkThat(BooleanSupplier function, String errorEvent, String errorMessage)
Definition: TokenUtils.java:39
RealmModel getRealm()
Definition: ActionTokenContext.java:93

◆ handleToken()

Response org.keycloak.authentication.actiontoken.resetcred.ResetCredentialsActionTokenHandler.handleToken ( ResetCredentialsActionToken  token,
ActionTokenContext  tokenContext 
)
inline
62  {
63  AuthenticationProcessor authProcessor = new ResetCredsAuthenticationProcessor();
64 
65  return tokenContext.processFlow(
66  false,
67  RESET_CREDENTIALS_PATH,
68  tokenContext.getRealm().getResetCredentialsFlow(),
69  null,
70  authProcessor
71  );
72  }
Definition: AuthenticationProcessor.java:72
Response processFlow(boolean action, String flowPath, AuthenticationFlowModel flow, String errorMessage, AuthenticationProcessor processor)
Definition: ActionTokenContext.java:159
RealmModel getRealm()
Definition: ActionTokenContext.java:93

◆ init()

void org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.init ( Scope  config)
inlineinherited
53  {
54  }

◆ postInit()

void org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.postInit ( KeycloakSessionFactory  factory)
inlineinherited
57  {
58  }

◆ startFreshAuthenticationSession()

AuthenticationSessionModel org.keycloak.authentication.actiontoken.AbstractActionTokenHander< T extends JsonWebToken >.startFreshAuthenticationSession ( token,
ActionTokenContext< T >  tokenContext 
)
inlineinherited
95  {
96  AuthenticationSessionModel authSession = tokenContext.createAuthenticationSessionForClient(token.getIssuedFor());
97  authSession.setAuthNote(AuthenticationManager.END_AFTER_REQUIRED_ACTIONS, "true");
98  return authSession;
99  }

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