public class ExternalAuthenticationMechanism extends Object implements AuthenticationMechanism
Modifier and Type | Class and Description |
---|---|
static class |
ExternalAuthenticationMechanism.Factory |
AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult
Modifier and Type | Field and Description |
---|---|
static AttachmentKey<String> |
EXTERNAL_AUTHENTICATION_TYPE |
static AttachmentKey<String> |
EXTERNAL_PRINCIPAL |
static ExternalAuthenticationMechanism.Factory |
FACTORY |
static String |
NAME |
Constructor and Description |
---|
ExternalAuthenticationMechanism() |
ExternalAuthenticationMechanism(String name) |
Modifier and Type | Method and Description |
---|---|
AuthenticationMechanism.AuthenticationMechanismOutcome |
authenticate(HttpServerExchange exchange,
SecurityContext securityContext)
Perform authentication of the request.
|
AuthenticationMechanism.ChallengeResult |
sendChallenge(HttpServerExchange exchange,
SecurityContext securityContext)
Send an authentication challenge to the remote client.
|
public static final ExternalAuthenticationMechanism.Factory FACTORY
public static final String NAME
public static final AttachmentKey<String> EXTERNAL_PRINCIPAL
public static final AttachmentKey<String> EXTERNAL_AUTHENTICATION_TYPE
public ExternalAuthenticationMechanism(String name)
public ExternalAuthenticationMechanism()
public AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanism
authenticate
in interface AuthenticationMechanism
exchange
- The exchangepublic AuthenticationMechanism.ChallengeResult sendChallenge(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanism
AuthenticationMechanism.ChallengeResult
and the most appropriate
overall response code will be selected.sendChallenge
in interface AuthenticationMechanism
exchange
- The exchangesecurityContext
- The security contextAuthenticationMechanism.ChallengeResult
indicating if a challenge was sent and the desired response code.Copyright © 2014 JBoss by Red Hat. All rights reserved.