Class RndTokenManager
- java.lang.Object
-
- org.restheart.security.plugins.tokens.RndTokenManager
-
- All Implemented Interfaces:
io.undertow.security.idm.IdentityManager,ConfigurablePlugin,Plugin,Authenticator,TokenManager
public class RndTokenManager extends Object implements TokenManager
-
-
Field Summary
-
Fields inherited from interface org.restheart.plugins.security.TokenManager
ACCESS_CONTROL_EXPOSE_HEADERS, AUTH_TOKEN_HEADER, AUTH_TOKEN_LOCATION_HEADER, AUTH_TOKEN_VALID_HEADER
-
-
Constructor Summary
Constructors Constructor Description RndTokenManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.undertow.security.idm.PasswordCredentialget(io.undertow.security.idm.Account account)Cache<String,PwdCredentialAccount>getCACHE()voidinit(Map<String,Object> confArgs, PluginsRegistry pluginsRegistry)voidinjectTokenHeaders(io.undertow.server.HttpServerExchange exchange, io.undertow.security.idm.PasswordCredential token)voidinvalidate(io.undertow.security.idm.Account account)voidupdate(io.undertow.security.idm.Account account)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.Accountverify(String id, io.undertow.security.idm.Credential credential)
-
-
-
Method Detail
-
init
public void init(Map<String,Object> confArgs, PluginsRegistry pluginsRegistry) throws ConfigurationException
- Throws:
ConfigurationException
-
verify
public io.undertow.security.idm.Account verify(io.undertow.security.idm.Account account)
- Specified by:
verifyin interfaceAuthenticator- Specified by:
verifyin interfaceio.undertow.security.idm.IdentityManager
-
verify
public io.undertow.security.idm.Account verify(String id, io.undertow.security.idm.Credential credential)
- Specified by:
verifyin interfaceAuthenticator- 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 interfaceAuthenticator- Specified by:
verifyin interfaceio.undertow.security.idm.IdentityManager
-
getCACHE
public Cache<String,PwdCredentialAccount> getCACHE()
-
get
public io.undertow.security.idm.PasswordCredential get(io.undertow.security.idm.Account account)
- Specified by:
getin interfaceTokenManager
-
invalidate
public void invalidate(io.undertow.security.idm.Account account)
- Specified by:
invalidatein interfaceTokenManager
-
update
public void update(io.undertow.security.idm.Account account)
- Specified by:
updatein interfaceTokenManager
-
injectTokenHeaders
public void injectTokenHeaders(io.undertow.server.HttpServerExchange exchange, io.undertow.security.idm.PasswordCredential token)- Specified by:
injectTokenHeadersin interfaceTokenManager
-
-