Class AuthenticationTargetFactory

java.lang.Object
de.xima.fc.mdl.auth.AuthenticationTargetFactory

public class AuthenticationTargetFactory extends Object
Factory for IAuthenticationTargets.
Since:
7.2.0
Author:
XIMA Media GmbH
  • Field Details

  • Method Details

    • newIdentityCheck

      public static IAuthenticationTarget newIdentityCheck(String identityCheckToken)
      Builds a new authentication target with key identity_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 key identity_check, the given identity check token and the given session ID.
      Parameters:
      identityCheckToken - token to use for identity check
      sessionId - 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