Class PasswordProviders

  • All Implemented Interfaces:
    PasswordProvider

    public class PasswordProviders
    extends java.lang.Object
    implements PasswordProvider
    Composite class which delegates to each of the configured providers in turn. The first instance which is responible for a user name wins.
    Since:
    4.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void changeDistinguisedName​(java.lang.String user, java.lang.String dn)  
      void changePassword​(java.lang.String user, java.lang.String password)
      Attempts to change the password for the given user.
      java.lang.Boolean checkPassword​(java.lang.String user, java.lang.String password, boolean readOnly)
      Authenticates the give user given the password token.
      boolean hasPassword​(java.lang.String user)
      Returns true if this provider considers itself responsible for the given user name.
      • Methods inherited from class java.lang.Object

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

      • PasswordProviders

        public PasswordProviders​(PasswordProvider... providers)
      • PasswordProviders

        public PasswordProviders​(java.util.concurrent.atomic.AtomicBoolean ignoreCaseLookup,
                                 PasswordProvider... providers)
    • Method Detail

      • checkPassword

        public java.lang.Boolean checkPassword​(java.lang.String user,
                                               java.lang.String password,
                                               boolean readOnly)
        Description copied from interface: PasswordProvider
        Authenticates the give user given the password token. May return a null Boolean in order to signal that this provider is not responsible for the given user and can make no decision. Concrete implementations may decide to return false for all unknown users. If readOnly is false, then some implementations may choose to create new users.
        Specified by:
        checkPassword in interface PasswordProvider