Class IdentityAuthMechanism
- java.lang.Object
-
- org.restheart.security.plugins.mechanisms.IdentityAuthMechanism
-
- All Implemented Interfaces:
io.undertow.security.api.AuthenticationMechanism,ConfigurablePlugin,Plugin,AuthMechanism
public class IdentityAuthMechanism extends Object implements AuthMechanism
a simple Auth Mechanism to demonstrate how to plug a custom AuthenticationMechanism it authenticates all requests against the configured IdentityManager using the credentials specified in the configuration file- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
-
Constructor Summary
Constructors Constructor Description IdentityAuthMechanism()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcomeauthenticate(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext)voidinit(Map<String,Object> confArgs)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, wait
-
Methods inherited from interface org.restheart.plugins.security.AuthMechanism
getMechanismName
-
-
-
-
Method Detail
-
init
public void init(Map<String,Object> confArgs) throws ConfigurationException
- Throws:
ConfigurationException
-
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 interfaceAuthMechanism
-
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 interfaceAuthMechanism
-
-