Package org.spincast.plugins.undertow
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a user to this identity manager.protected io.undertow.security.idm.AccountcreateAccount(String username) protected Map<io.undertow.security.idm.PasswordCredential,io.undertow.security.idm.Account> voidRemoves all users from this identity manager.voidremoveUser(String username) Removes a user from this identity manager.io.undertow.security.idm.Accountverify(io.undertow.security.idm.Account account) io.undertow.security.idm.Accountverify(io.undertow.security.idm.Credential credential) io.undertow.security.idm.Account
-
Constructor Details
-
SpincastHttpAuthIdentityManagerDefault
public SpincastHttpAuthIdentityManagerDefault()Constructor.
-
-
Method Details
-
getCredentials
-
getAccounts
protected Map<io.undertow.security.idm.PasswordCredential,io.undertow.security.idm.Account> getAccounts() -
addUser
Description copied from interface:SpincastHttpAuthIdentityManagerAdds a user to this identity manager.- Specified by:
addUserin interfaceSpincastHttpAuthIdentityManager
-
createAccount
-
removeUser
Description copied from interface:SpincastHttpAuthIdentityManagerRemoves a user from this identity manager.- Specified by:
removeUserin interfaceSpincastHttpAuthIdentityManager
-
removeAllUsers
public void removeAllUsers()Description copied from interface:SpincastHttpAuthIdentityManagerRemoves all users from this identity manager.- Specified by:
removeAllUsersin interfaceSpincastHttpAuthIdentityManager
-
verify
public io.undertow.security.idm.Account verify(io.undertow.security.idm.Account account) - Specified by:
verifyin interfaceio.undertow.security.idm.IdentityManager
-
verify
public io.undertow.security.idm.Account verify(io.undertow.security.idm.Credential credential) - Specified by:
verifyin interfaceio.undertow.security.idm.IdentityManager
-
verify
public io.undertow.security.idm.Account verify(String username, io.undertow.security.idm.Credential credential) - Specified by:
verifyin interfaceio.undertow.security.idm.IdentityManager
-