Class AuthConfig

java.lang.Object
no.polaric.core.auth.AuthConfig
All Implemented Interfaces:
org.pac4j.core.config.ConfigFactory

public class AuthConfig extends Object implements org.pac4j.core.config.ConfigFactory
The security configuration must be defined via a Config object. Consists of: - Clients (authentication mechanisms) - Authenticators (credentials validation) - Authorizers (authorization checks) - Matchers A Client represents a web authentication mechanism. It performs the login process and returns (if successful) a user profile. HTTP clients require an Authenticator to validate the credentials. Authorizers are meant to check authorizations when accessing an URL (in the “security filter”); either on the authenticated user profile or on the web context. Matcher: The “security filter” is in charge of protecting URL, requesting authentication and optionally authorization.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AuthConfig(org.pac4j.core.credentials.authenticator.Authenticator pw, org.pac4j.core.credentials.authenticator.Authenticator hmauth)
    AuthConfig constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.pac4j.core.config.Config
    build(Object... parameters)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AuthConfig

      public AuthConfig(org.pac4j.core.credentials.authenticator.Authenticator pw, org.pac4j.core.credentials.authenticator.Authenticator hmauth)
      AuthConfig constructor.
      Parameters:
      pw - Password authenticator
      hmauth - Arctic Hmac authenticator
  • Method Details

    • build

      public org.pac4j.core.config.Config build(Object... parameters)
      Specified by:
      build in interface org.pac4j.core.config.ConfigFactory