Class BasicAuthMechanism
java.lang.Object
io.undertow.security.impl.BasicAuthenticationMechanism
org.restheart.security.mechanisms.BasicAuthMechanism
- All Implemented Interfaces:
io.undertow.security.api.AuthenticationMechanism,org.restheart.plugins.ConfigurablePlugin,org.restheart.plugins.Plugin,org.restheart.plugins.security.AuthMechanism
public class BasicAuthMechanism
extends io.undertow.security.impl.BasicAuthenticationMechanism
implements org.restheart.plugins.security.AuthMechanism
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.undertow.security.impl.BasicAuthenticationMechanism
io.undertow.security.impl.BasicAuthenticationMechanism.FactoryNested classes/interfaces inherited from interface io.undertow.security.api.AuthenticationMechanism
io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome, io.undertow.security.api.AuthenticationMechanism.ChallengeResult -
Field Summary
FieldsFields inherited from class io.undertow.security.impl.BasicAuthenticationMechanism
CHARSET, FACTORY, SILENT, USER_AGENT_CHARSETS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcomeauthenticate(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext) voidinit()io.undertow.security.api.AuthenticationMechanism.ChallengeResultsendChallenge(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.restheart.plugins.security.AuthMechanism
getMechanismNameMethods inherited from interface org.restheart.plugins.ConfigurablePlugin
arg, argOrDefault
-
Field Details
-
SILENT_HEADER_KEY
- See Also:
-
SILENT_QUERY_PARAM_KEY
- See Also:
-
-
Constructor Details
-
BasicAuthMechanism
public BasicAuthMechanism() throws org.restheart.configuration.ConfigurationException- Throws:
org.restheart.configuration.ConfigurationException
-
-
Method Details
-
init
public void init() throws org.restheart.configuration.ConfigurationException- Throws:
org.restheart.configuration.ConfigurationException
-
sendChallenge
public io.undertow.security.api.AuthenticationMechanism.ChallengeResult sendChallenge(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext) - Specified by:
sendChallengein interfaceio.undertow.security.api.AuthenticationMechanism- Specified by:
sendChallengein interfaceorg.restheart.plugins.security.AuthMechanism- Overrides:
sendChallengein classio.undertow.security.impl.BasicAuthenticationMechanism
-
authenticate
public io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext) - Specified by:
authenticatein interfaceio.undertow.security.api.AuthenticationMechanism- Specified by:
authenticatein interfaceorg.restheart.plugins.security.AuthMechanism- Overrides:
authenticatein classio.undertow.security.impl.BasicAuthenticationMechanism
-