keycloak-spi-private
公開メンバ関数 | 全メンバ一覧
org.keycloak.authentication.FormAction インタフェース
org.keycloak.authentication.FormAction の継承関係図
Inheritance graph
org.keycloak.authentication.FormAction 連携図
Collaboration graph

公開メンバ関数

void buildPage (FormContext context, LoginFormsProvider form)
 
void validate (ValidationContext context)
 
void success (FormContext context)
 
boolean requiresUser ()
 
boolean configuredFor (KeycloakSession session, RealmModel realm, UserModel user)
 
void setRequiredActions (KeycloakSession session, RealmModel realm, UserModel user)
 

詳解

Fine grain processing of a form. Allows you to split up the processing of a form into smaller parts so that you can enable/disable them from the admin console. For example, Recaptcha is a FormAction. This allows you as the admin to turn Recaptcha on/off even though it is on the same form/page as other registration validation.

著者
Bill Burke
バージョン
Revision
1

関数詳解

◆ buildPage()

void org.keycloak.authentication.FormAction.buildPage ( FormContext  context,
LoginFormsProvider  form 
)

When a FormAuthenticator is rendering the challenge page, even FormAction.buildPage() method will be called This gives the FormAction the opportunity to add additional attributes to the form to be displayed.

引数
context
form

◆ configuredFor()

boolean org.keycloak.authentication.FormAction.configuredFor ( KeycloakSession  session,
RealmModel  realm,
UserModel  user 
)

Is this FormAction configured for the current user?

引数
session
realm
user
戻り値

◆ requiresUser()

boolean org.keycloak.authentication.FormAction.requiresUser ( )

Does this FormAction require that a user be set? For registration, this method will always return false.

戻り値

◆ setRequiredActions()

void org.keycloak.authentication.FormAction.setRequiredActions ( KeycloakSession  session,
RealmModel  realm,
UserModel  user 
)

Set actions to configure authenticator

◆ success()

void org.keycloak.authentication.FormAction.success ( FormContext  context)

Called after all validate() calls of all FormAction providers are successful.

引数
context

◆ validate()

void org.keycloak.authentication.FormAction.validate ( ValidationContext  context)

This is the first phase of form processing. Each FormAction.validate() method is called. This gives the FormAction a chance to validate and challenge if user input is invalid.

引数
context

このインタフェース詳解は次のファイルから抽出されました: