Package de.xima.fc.mdl.auth
Class AuthenticationTargetFactory
- java.lang.Object
 - 
- de.xima.fc.mdl.auth.AuthenticationTargetFactory
 
 
- 
public class AuthenticationTargetFactory extends Object
Factory forIAuthenticationTargets.- Since:
 - 7.2.0
 - Author:
 - XIMA Media GmbH
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static IAuthenticationTargetBACKENDAuthentication results in a user in theHttpSessionstatic IAuthenticationTargetEXTERNALAuthentication results in a user in theHttpSessionstatic IAuthenticationTargetFORMAuthentication results in a user in theFRQSession 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IAuthenticationTargetforRequest(javax.servlet.http.HttpServletRequest req)Builds the authentication target from the request.static IAuthenticationTargetnewIdentityCheck(String identityCheckToken)Builds a new authentication target with keyidentity_checkand the given identity check token.static IAuthenticationTargetnewIdentityCheck(String identityCheckToken, String sessionId)Builds a new authentication target with keyidentity_check, the given identity check token and the given session ID. 
 - 
 
- 
- 
Field Detail
- 
BACKEND
public static final IAuthenticationTarget BACKEND
Authentication results in a user in theHttpSession 
- 
FORM
public static final IAuthenticationTarget FORM
Authentication results in a user in theFRQSession 
- 
EXTERNAL
public static final IAuthenticationTarget EXTERNAL
Authentication results in a user in theHttpSession 
 - 
 
- 
Method Detail
- 
newIdentityCheck
public static IAuthenticationTarget newIdentityCheck(String identityCheckToken)
Builds a new authentication target with keyidentity_checkand the given identity check token.- Parameters:
 identityCheckToken- token to use for identity check- Returns:
 - built authentication target
 
 
- 
newIdentityCheck
public static IAuthenticationTarget newIdentityCheck(String identityCheckToken, String sessionId)
Builds a new authentication target with keyidentity_check, the given identity check token and the given session ID.- Parameters:
 identityCheckToken- token to use for identity checksessionId- to use. Is important for identity checks that use frontend servers.- Returns:
 - built authentication target
 
 
- 
forRequest
public static IAuthenticationTarget forRequest(javax.servlet.http.HttpServletRequest req)
Builds the authentication target from the request. This is only applicable for Requests to.../form/auth/loginand.../form/auth/callbackas this is the only place where authentication targets are necessary.- Parameters:
 req- to build authentication target for- Returns:
 - built authentication target
 
 
 - 
 
 -