Package no.polaric.core.auth
Class AuthConfig
java.lang.Object
no.polaric.core.auth.AuthConfig
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionAuthConfig
(org.pac4j.core.credentials.authenticator.Authenticator pw, org.pac4j.core.credentials.authenticator.Authenticator hmauth) AuthConfig constructor. -
Method Summary
-
Constructor Details
-
AuthConfig
public AuthConfig(org.pac4j.core.credentials.authenticator.Authenticator pw, org.pac4j.core.credentials.authenticator.Authenticator hmauth) AuthConfig constructor.- Parameters:
pw
- Password authenticatorhmauth
- Arctic Hmac authenticator
-
-
Method Details
-
build
- Specified by:
build
in interfaceorg.pac4j.core.config.ConfigFactory
-