public class IDPAuthenticationMechanism extends ServletFormAuthenticationMechanism
ServletFormAuthenticationMechanism.FactoryAuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResultFACTORY, SAVE_ORIGINAL_REQUESTDEFAULT_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, storeInitialLocationrunFormAuthpublic IDPAuthenticationMechanism(FormParserFactory formParserFactory, String mechanismName, String loginPage, String errorPage, PicketLinkType configuration, PicketLinkAuditHelper auditHelper)
public AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(HttpServerExchange exchange, SecurityContext securityContext)
AuthenticationMechanismauthenticate in interface AuthenticationMechanismauthenticate in class FormAuthenticationMechanismexchange - 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 AuthenticationMechanismsendChallenge in class FormAuthenticationMechanismexchange - The exchangesecurityContext - The security contextAuthenticationMechanism.ChallengeResult indicating if a challenge was sent and the desired response code.Copyright © 2018 JBoss by Red Hat. All rights reserved.