public class DigestAuthenticationMechanism extends Object implements AuthenticationMechanism
HttpHandler
to handle HTTP Digest authentication, both according to RFC-2617 and draft update to allow additional
algorithms to be used.AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult
Modifier and Type | Field and Description |
---|---|
static io.undertow.security.impl.DigestAuthenticationMechanism.Factory |
FACTORY |
Constructor and Description |
---|
DigestAuthenticationMechanism(List<DigestAlgorithm> supportedAlgorithms,
List<DigestQop> supportedQops,
String realmName,
String domain,
NonceManager nonceManager) |
DigestAuthenticationMechanism(List<DigestAlgorithm> supportedAlgorithms,
List<DigestQop> supportedQops,
String realmName,
String domain,
NonceManager nonceManager,
String mechanismName) |
DigestAuthenticationMechanism(String realmName,
String domain,
String mechanismName) |
Modifier and Type | Method and Description |
---|---|
AuthenticationMechanism.AuthenticationMechanismOutcome |
authenticate(HttpServerExchange exchange,
SecurityContext securityContext)
Perform authentication of the request.
|
AuthenticationMechanism.AuthenticationMechanismOutcome |
handleDigestHeader(HttpServerExchange exchange,
SecurityContext securityContext) |
void |
sendAuthenticationInfoHeader(HttpServerExchange exchange) |
AuthenticationMechanism.ChallengeResult |
sendChallenge(HttpServerExchange exchange,
SecurityContext securityContext)
Send an authentication challenge to the remote client.
|
public static final io.undertow.security.impl.DigestAuthenticationMechanism.Factory FACTORY
public DigestAuthenticationMechanism(List<DigestAlgorithm> supportedAlgorithms, List<DigestQop> supportedQops, String realmName, String domain, NonceManager nonceManager)
public DigestAuthenticationMechanism(List<DigestAlgorithm> supportedAlgorithms, List<DigestQop> supportedQops, String realmName, String domain, NonceManager nonceManager, String mechanismName)
public AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanism
authenticate
in interface AuthenticationMechanism
exchange
- The exchangepublic AuthenticationMechanism.AuthenticationMechanismOutcome handleDigestHeader(HttpServerExchange exchange, SecurityContext securityContext)
public 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.public void sendAuthenticationInfoHeader(HttpServerExchange exchange)
Copyright © 2014 JBoss by Red Hat. All rights reserved.