Class SpincastHttpAuthIdentityManagerDefault

java.lang.Object
org.spincast.plugins.undertow.SpincastHttpAuthIdentityManagerDefault
All Implemented Interfaces:
io.undertow.security.idm.IdentityManager, SpincastHttpAuthIdentityManager

public class SpincastHttpAuthIdentityManagerDefault extends Object implements SpincastHttpAuthIdentityManager
Implementation of the SpincastHttpAuthIdentityManager based on a simple Map.
  • Constructor Details

    • SpincastHttpAuthIdentityManagerDefault

      public SpincastHttpAuthIdentityManagerDefault()
      Constructor.
  • Method Details

    • getCredentials

      protected Map<String,io.undertow.security.idm.PasswordCredential> getCredentials()
    • getAccounts

      protected Map<io.undertow.security.idm.PasswordCredential,io.undertow.security.idm.Account> getAccounts()
    • addUser

      public void addUser(String username, String password)
      Description copied from interface: SpincastHttpAuthIdentityManager
      Adds a user to this identity manager.
      Specified by:
      addUser in interface SpincastHttpAuthIdentityManager
    • createAccount

      protected io.undertow.security.idm.Account createAccount(String username)
    • removeUser

      public void removeUser(String username)
      Description copied from interface: SpincastHttpAuthIdentityManager
      Removes a user from this identity manager.
      Specified by:
      removeUser in interface SpincastHttpAuthIdentityManager
    • removeAllUsers

      public void removeAllUsers()
      Description copied from interface: SpincastHttpAuthIdentityManager
      Removes all users from this identity manager.
      Specified by:
      removeAllUsers in interface SpincastHttpAuthIdentityManager
    • verify

      public io.undertow.security.idm.Account verify(io.undertow.security.idm.Account account)
      Specified by:
      verify in interface io.undertow.security.idm.IdentityManager
    • verify

      public io.undertow.security.idm.Account verify(io.undertow.security.idm.Credential credential)
      Specified by:
      verify in interface io.undertow.security.idm.IdentityManager
    • verify

      public io.undertow.security.idm.Account verify(String username, io.undertow.security.idm.Credential credential)
      Specified by:
      verify in interface io.undertow.security.idm.IdentityManager