public class PicketLinkAuthenticator extends Object implements AuthenticationMechanism
Modifier and Type | Class and Description |
---|---|
static class |
PicketLinkAuthenticator.Factory |
AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult
Constructor and Description |
---|
PicketLinkAuthenticator(IdentityManager identityManager,
Boolean needSubjectPrincipalSubstitution,
String subjectInteractionClassName,
String securityDomain) |
Modifier and Type | Method and Description |
---|---|
AuthenticationMechanism.AuthenticationMechanismOutcome |
authenticate(HttpServerExchange exchange,
SecurityContext securityContext)
Perform authentication of the request.
|
protected Principal |
getSubjectPrincipal() |
protected boolean |
performAuthentication(SecurityContext securityContext)
Actually performs the authentication.
|
AuthenticationMechanism.ChallengeResult |
sendChallenge(HttpServerExchange exchange,
SecurityContext securityContext)
Send an authentication challenge to the remote client.
|
public PicketLinkAuthenticator(IdentityManager identityManager, Boolean needSubjectPrincipalSubstitution, String subjectInteractionClassName, String securityDomain)
public AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanism
authenticate
in interface AuthenticationMechanism
exchange
- The exchangepublic AuthenticationMechanism.ChallengeResult sendChallenge(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanism
The individual mechanisms should update the response headers and body of the message as appropriate however they should
not set the response code, instead that should be indicated in the AuthenticationMechanism.ChallengeResult
and the most appropriate
overall response code will be selected.
This method should not return null
.
sendChallenge
in interface AuthenticationMechanism
exchange
- The exchangesecurityContext
- The security contextAuthenticationMechanism.ChallengeResult
indicating if a challenge was sent and the desired response code.protected boolean performAuthentication(SecurityContext securityContext)
Actually performs the authentication. Subclasses should call this method when implementing the AuthenticatorBase.authenticate
method.
This method was created to allow different signatures for the AuthenticatorBase.authenticate
method according with the catalina version.
request
- response
- loginConfig
- IOException
protected Principal getSubjectPrincipal()
Copyright © 2017 JBoss by Red Hat. All rights reserved.