Class FormConfigWrapper
- java.lang.Object
-
- de.xima.fc.web.common.auth.wrapper.config.FormConfigWrapper
-
- All Implemented Interfaces:
IAuthenticatorConfigWrapper
,IStringAttributesMixin
,Serializable
public class FormConfigWrapper extends Object
Wrapper for authenticator configs of typeEAuthClientType.FORM
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAuthenticatorClients
buildAuthClients(IFormAuthContext authCtx)
Builds the authentication clients based on the current data of the wrapperorg.pac4j.core.authorization.authorizer.Authorizer
buildAuthorizer(IFormAuthContext authCtx)
Builds the authorizer base on the current data of the wrapperMap<String,String>
getAttributes()
IClientDescriptor
getClientDescriptor()
IAuthenticatorConfigRenderer
getRenderer()
protected IAuthenticatorConfig
getWrapped()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.interfaces.auth.config.IAuthenticatorConfigWrapper
getAuthenticatorToken, getAuthenticatorType
-
Methods inherited from interface de.xima.fc.interfaces.mixin.attributes.IStringAttributesMixin
getAttributeValue, getAttributeValueList, getAttributeValueMap, putAttribute, putAttributes, putAttributes, removeAttribute
-
-
-
-
Method Detail
-
buildAuthorizer
public org.pac4j.core.authorization.authorizer.Authorizer buildAuthorizer(IFormAuthContext authCtx)
Description copied from interface:IAuthenticatorConfigWrapper
Builds the authorizer base on the current data of the wrapper- Parameters:
authCtx
-IFormAuthContext
to build the authorizers for- Returns:
- the
Authorizer
-
getAttributes
public Map<String,String> getAttributes()
- Specified by:
getAttributes
in interfaceIAuthenticatorConfigWrapper
- Specified by:
getAttributes
in interfaceIStringAttributesMixin
- Returns:
- custom attributes of this authenticator config
-
getClientDescriptor
public IClientDescriptor getClientDescriptor()
- Specified by:
getClientDescriptor
in interfaceIAuthenticatorConfigWrapper
- Returns:
- Descriptor of the authentication client.
-
getRenderer
public IAuthenticatorConfigRenderer getRenderer()
- Specified by:
getRenderer
in interfaceIAuthenticatorConfigWrapper
- Returns:
- config renderer that is used to create the rendered HTML of the authenticator config
-
getWrapped
protected IAuthenticatorConfig getWrapped()
-
buildAuthClients
public IAuthenticatorClients buildAuthClients(IFormAuthContext authCtx)
Description copied from interface:IAuthenticatorConfigWrapper
Builds the authentication clients based on the current data of the wrapper- Specified by:
buildAuthClients
in interfaceIAuthenticatorConfigWrapper
- Parameters:
authCtx
-IFormAuthContext
to build the client for- Returns:
- the
Client
-
-