public class IDPAuthenticationMechanism extends ServletFormAuthenticationMechanism
ServletFormAuthenticationMechanism.Factory
AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult
SAVE_ORIGINAL_REQUEST
DEFAULT_POST_LOCATION, LOCATION_ATTRIBUTE
Constructor and Description |
---|
IDPAuthenticationMechanism(FormParserFactory formParserFactory,
String mechanismName,
String loginPage,
String errorPage,
PicketLinkType configuration,
PicketLinkAuditHelper auditHelper) |
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.
|
handleRedirectBack, servePage, storeInitialLocation
runFormAuth
public IDPAuthenticationMechanism(FormParserFactory formParserFactory, String mechanismName, String loginPage, String errorPage, PicketLinkType configuration, PicketLinkAuditHelper auditHelper)
public AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanism
authenticate
in interface AuthenticationMechanism
authenticate
in class FormAuthenticationMechanism
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
sendChallenge
in class FormAuthenticationMechanism
exchange
- The exchangesecurityContext
- The security contextAuthenticationMechanism.ChallengeResult
indicating if a challenge was sent and the desired response code.Copyright © 2017 JBoss by Red Hat. All rights reserved.