Package de.xima.fc.web.common.auth
Class FormAuthContextBuilder
- java.lang.Object
 - 
- de.xima.fc.web.common.auth.FormAuthContextBuilder
 
 
- 
public class FormAuthContextBuilder extends Object
Builder for creating anIFormAuthContext- Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected javax.servlet.http.HttpServletRequestrequestprotected javax.servlet.http.HttpServletResponseresponseprotected FRQSessionsession 
- 
Constructor Summary
Constructors Constructor Description FormAuthContextBuilder(IExtendedFormRequestContext requestCtx)Constructor for creating the builder based on anIExtendedFormRequestContextFormAuthContextBuilder(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Constructor for creating the builder based on an servlet request 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IFormAuthContextbuild()Builds theIFormAuthContextFormAuthContextBuilderforceAuthType(EAuthClientType type)FormAuthContextBuilderwithAuthenticatorToken(String authenticatorToken)Deprecated.The authenticator token should be determined by the pac4j through the request. 
 - 
 
- 
- 
Field Detail
- 
request
protected javax.servlet.http.HttpServletRequest request
 
- 
response
protected javax.servlet.http.HttpServletResponse response
 
- 
session
protected FRQSession session
 
 - 
 
- 
Constructor Detail
- 
FormAuthContextBuilder
public FormAuthContextBuilder(IExtendedFormRequestContext requestCtx)
Constructor for creating the builder based on anIExtendedFormRequestContext- Parameters:
 requestCtx- theIExtendedFormRequestContext
 
- 
FormAuthContextBuilder
public FormAuthContextBuilder(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)Constructor for creating the builder based on an servlet request- Parameters:
 req-HttpServletRequestresp-HttpServletResponse
 
 - 
 
- 
Method Detail
- 
withAuthenticatorToken
@Deprecated public FormAuthContextBuilder withAuthenticatorToken(String authenticatorToken)
Deprecated.The authenticator token should be determined by the pac4j through the request. 
- 
forceAuthType
public FormAuthContextBuilder forceAuthType(EAuthClientType type)
 
- 
build
public IFormAuthContext build()
Builds theIFormAuthContext- Returns:
 IFormAuthContext
 
 - 
 
 -