Package org.restheart.security.tokens
Class RndTokenManager
java.lang.Object
org.restheart.security.tokens.RndTokenManager
- All Implemented Interfaces:
io.undertow.security.idm.IdentityManager,org.restheart.plugins.ConfigurablePlugin,org.restheart.plugins.Plugin,org.restheart.plugins.security.Authenticator,org.restheart.plugins.security.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 -
Method Summary
Modifier and TypeMethodDescriptionio.undertow.security.idm.PasswordCredentialget(io.undertow.security.idm.Account account) org.restheart.cache.Cache<String, org.restheart.security.PwdCredentialAccount> getCACHE()voidinit()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.AccountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.restheart.plugins.ConfigurablePlugin
arg, argOrDefault
-
Constructor Details
-
RndTokenManager
public RndTokenManager()
-
-
Method Details
-
init
public void init() throws org.restheart.configuration.ConfigurationException- Throws:
org.restheart.configuration.ConfigurationException
-
verify
public io.undertow.security.idm.Account verify(io.undertow.security.idm.Account account) - Specified by:
verifyin interfaceorg.restheart.plugins.security.Authenticator- 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 interfaceorg.restheart.plugins.security.Authenticator- 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 interfaceorg.restheart.plugins.security.Authenticator- Specified by:
verifyin interfaceio.undertow.security.idm.IdentityManager
-
getCACHE
-
get
public io.undertow.security.idm.PasswordCredential get(io.undertow.security.idm.Account account) - Specified by:
getin interfaceorg.restheart.plugins.security.TokenManager
-
invalidate
public void invalidate(io.undertow.security.idm.Account account) - Specified by:
invalidatein interfaceorg.restheart.plugins.security.TokenManager
-
update
public void update(io.undertow.security.idm.Account account) - Specified by:
updatein interfaceorg.restheart.plugins.security.TokenManager
-
injectTokenHeaders
public void injectTokenHeaders(io.undertow.server.HttpServerExchange exchange, io.undertow.security.idm.PasswordCredential token) - Specified by:
injectTokenHeadersin interfaceorg.restheart.plugins.security.TokenManager
-