public class GSSAPIAuthenticationMechanism extends Object implements AuthenticationMechanism
AuthenticationMechanism for GSSAPI / SPNEGO based authentication.
GSSAPI authentication is associated with the HTTP connection, as long as a connection is being re-used allow the
authentication state to be re-used.
TODO - May consider an option to allow it to also be associated with the underlying session but that has it's own risks so
would need to come with a warning.AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult| Constructor and Description |
|---|
GSSAPIAuthenticationMechanism(GSSAPIServerSubjectFactory subjectFactory) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationMechanism.AuthenticationMechanismOutcome |
authenticate(HttpServerExchange exchange,
SecurityContext securityContext)
Perform authentication of the request.
|
AuthenticationMechanism.AuthenticationMechanismOutcome |
runGSSAPI(HttpServerExchange exchange,
ByteBuffer challenge,
SecurityContext securityContext) |
AuthenticationMechanism.ChallengeResult |
sendChallenge(HttpServerExchange exchange,
SecurityContext securityContext)
Send an authentication challenge to the remote client.
|
public GSSAPIAuthenticationMechanism(GSSAPIServerSubjectFactory subjectFactory)
public AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanismauthenticate in interface AuthenticationMechanismexchange - The exchangepublic 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.public AuthenticationMechanism.AuthenticationMechanismOutcome runGSSAPI(HttpServerExchange exchange, ByteBuffer challenge, SecurityContext securityContext)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.