Package de.xima.fc.interfaces.auth
Interface IFormAuthContext
- 
- All Superinterfaces:
- Serializable
 - All Known Implementing Classes:
- FormAuthContext
 
 public interface IFormAuthContext extends Serializable Interface of an form based authentication context- Author:
- XIMA MEDIA GmbH
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidauthorize()Starts the authorization flow of the current contextvoidauthorize(javax.servlet.FilterChain chain)Starts the authorization flow of the current contextvoidcallback()Starts the callback handling of the current contextbooleancheckAuthorisation(org.pac4j.core.profile.CommonProfile profile)Checks the authorization of the given profiles against the current contextorg.pac4j.core.config.ConfiggetAuthConfig()Returns the current configuration of the authentication context.List<IAuthenticatorConfigWrapper>getAuthConfigOptions()StringgetAuthenticatorToken()Get the token of the currentIAuthenticatoror the name of an internal authenticatorStringgetBaseUrl()Get the current base URLMandantgetClient()Get the client to which the form belongs.FRQSessiongetFRQSession()Get the current form request session to authenticate withLocalegetLocale()Returns the locale of the auth contextMap<String,ProjectAuthenticatorConfig>getProjectAuthConfig()Deprecated.USegetAuthConfigOptions()insteadjavax.servlet.http.HttpServletRequestgetRequest()Returns the HTTP servlet requestjavax.servlet.http.HttpServletResponsegetResponse()Returns the HTTP servlet responseIAuthenticatorConfigWrappergetTokenAuthConfig()voidlogout()Starts the logout from the given authorizationsvoidlogout(javax.servlet.FilterChain chain)Starts the logout from the given authorizationsvoidsetAuthenticatorToken(String token)Set the token of the currentIAuthenticator
 
- 
- 
- 
Method Detail- 
getAuthenticatorTokenString getAuthenticatorToken() Get the token of the currentIAuthenticatoror the name of an internal authenticator- Returns:
- Stringtoken or name
 
 - 
setAuthenticatorTokenvoid setAuthenticatorToken(String token) Set the token of the currentIAuthenticator- Parameters:
- token- The token of the current- IAuthenticatoror the name of an internal authenticator.
 
 - 
getTokenAuthConfigIAuthenticatorConfigWrapper getTokenAuthConfig() - Returns:
- the IAuthenticatorConfigWrapperfor a given authenticator token
 
 - 
getAuthConfigOptionsList<IAuthenticatorConfigWrapper> getAuthConfigOptions() - Returns:
- A Listof all available authenticator configs
 
 - 
getClientMandant getClient() Get the client to which the form belongs.- Returns:
- The current Mandantto which the form belongs.
 
 - 
getFRQSessionFRQSession getFRQSession() Get the current form request session to authenticate with- Returns:
- FRQSessionto authenticate
 
 - 
getAuthConfigorg.pac4j.core.config.Config getAuthConfig() Returns the current configuration of the authentication context. If no configuration is present, the configuration will be build and saved.- Returns:
- The existing or newly created Config.
 
 - 
getRequestjavax.servlet.http.HttpServletRequest getRequest() Returns the HTTP servlet request- Returns:
- HttpServletRequest
 
 - 
getResponsejavax.servlet.http.HttpServletResponse getResponse() Returns the HTTP servlet response- Returns:
- HttpServletResponse
 
 - 
checkAuthorisationboolean checkAuthorisation(org.pac4j.core.profile.CommonProfile profile) Checks the authorization of the given profiles against the current context- Parameters:
- profile- A- CommonProfileto check
- Returns:
- trueif authorized, or- falseotherwise.
 
 - 
authorizevoid authorize() Starts the authorization flow of the current context
 - 
authorizevoid authorize(javax.servlet.FilterChain chain) Starts the authorization flow of the current context- Parameters:
- chain-- FilterChainto process after the authorization
 
 - 
logoutvoid logout() Starts the logout from the given authorizations
 - 
logoutvoid logout(javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletExceptionStarts the logout from the given authorizations- Parameters:
- chain-- FilterChainto process after the logout
- Throws:
- IOException- IO-errors while processing the chain
- javax.servlet.ServletException- Servlet-errors while processing the chain
 
 - 
callbackvoid callback() Starts the callback handling of the current context
 - 
getProjectAuthConfig@Deprecated Map<String,ProjectAuthenticatorConfig> getProjectAuthConfig() Deprecated.USegetAuthConfigOptions()instead
 
- 
 
-