public class BasicAuthenticationMechanism extends Object implements AuthenticationMechanism
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicAuthenticationMechanism.Factory |
AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult| Modifier and Type | Field and Description |
|---|---|
static BasicAuthenticationMechanism.Factory |
FACTORY |
static String |
SILENT |
| Constructor and Description |
|---|
BasicAuthenticationMechanism(String realmName) |
BasicAuthenticationMechanism(String realmName,
String mechanismName) |
BasicAuthenticationMechanism(String realmName,
String mechanismName,
boolean silent) |
| 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 String SILENT
public static final BasicAuthenticationMechanism.Factory FACTORY
public BasicAuthenticationMechanism(String realmName)
public BasicAuthenticationMechanism(String realmName, String mechanismName)
public AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanismauthenticate in interface AuthenticationMechanismexchange - The exchangeHttpHandler.handleRequest(io.undertow.server.HttpServerExchange)public AuthenticationMechanism.ChallengeResult sendChallenge(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanismAuthenticationMechanism.ChallengeResult and the most appropriate
overall response code will be selected.sendChallenge in interface AuthenticationMechanismexchange - 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.