Class PasswordAuthorizer

java.lang.Object
org.pac4j.core.authorization.authorizer.ProfileAuthorizer
org.pac4j.core.authorization.authorizer.AbstractCheckAuthenticationAuthorizer
de.xima.fc.web.common.auth.password.PasswordAuthorizer
All Implemented Interfaces:
org.pac4j.core.authorization.authorizer.Authorizer

public class PasswordAuthorizer extends org.pac4j.core.authorization.authorizer.AbstractCheckAuthenticationAuthorizer
Authorizer for checking a given password against an authorization config
Since:
7.0.0
Author:
XIMA MEDIA GmbH
  • Constructor Summary

    Constructors
    Constructor
    Description
    PasswordAuthorizer(String password, boolean hashed)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isAuthorized(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, List<org.pac4j.core.profile.UserProfile> profiles)
     
    protected boolean
    isProfileAuthorized(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.profile.UserProfile profile)
     
    protected boolean
    validate(String password)
     

    Methods inherited from class org.pac4j.core.authorization.authorizer.AbstractCheckAuthenticationAuthorizer

    getRedirectionUrl, handleError, setRedirectionUrl, toString

    Methods inherited from class org.pac4j.core.authorization.authorizer.ProfileAuthorizer

    isAllAuthorized, isAnyAuthorized

    Methods inherited from class java.lang.Object

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

    • PasswordAuthorizer

      public PasswordAuthorizer(String password, boolean hashed)
  • Method Details

    • isAuthorized

      public boolean isAuthorized(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, List<org.pac4j.core.profile.UserProfile> profiles)
    • isProfileAuthorized

      protected boolean isProfileAuthorized(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.profile.UserProfile profile)
      Specified by:
      isProfileAuthorized in class org.pac4j.core.authorization.authorizer.ProfileAuthorizer
    • validate

      protected boolean validate(String password)