Package de.xima.fc.mdl.auth
Class AuthenticationTargetFactory
- java.lang.Object
-
- de.xima.fc.mdl.auth.AuthenticationTargetFactory
-
public class AuthenticationTargetFactory extends Object
Factory forIAuthenticationTarget
s.- Since:
- 7.2.0
- Author:
- XIMA Media GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static IAuthenticationTarget
BACKEND
Authentication results in a user in theHttpSession
static IAuthenticationTarget
EXTERNAL
Authentication results in a user in theHttpSession
static IAuthenticationTarget
FORM
Authentication results in a user in theFRQSession
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IAuthenticationTarget
forRequest(javax.servlet.http.HttpServletRequest req)
Builds the authentication target from the request.static IAuthenticationTarget
newIdentityCheck(String identityCheckToken)
Builds a new authentication target with keyidentity_check
and the given identity check token.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.
-
-
-
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_check
and 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/login
and.../form/auth/callback
as this is the only place where authentication targets are necessary.- Parameters:
req
- to build authentication target for- Returns:
- built authentication target
-
-