public class SingleSignOnAuthenticationMechanism extends Object implements AuthenticationMechanism
AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult
Constructor and Description |
---|
SingleSignOnAuthenticationMechanism(SingleSignOnManager storage) |
SingleSignOnAuthenticationMechanism(SingleSignOnManager storage, IdentityManager identityManager) |
Modifier and Type | Method and Description |
---|---|
AuthenticationMechanism.AuthenticationMechanismOutcome | authenticate(HttpServerExchange exchange, SecurityContext securityContext) Perform authentication of the request. |
String | getCookieName() |
String | getDomain() |
String | getPath() |
protected Session | getSession(HttpServerExchange exchange) |
boolean | isHttpOnly() |
boolean | isSecure() |
AuthenticationMechanism.ChallengeResult | sendChallenge(HttpServerExchange exchange, SecurityContext securityContext) Send an authentication challenge to the remote client. |
SingleSignOnAuthenticationMechanism | setCookieName(String cookieName) |
SingleSignOnAuthenticationMechanism | setDomain(String domain) |
SingleSignOnAuthenticationMechanism | setHttpOnly(boolean httpOnly) |
SingleSignOnAuthenticationMechanism | setPath(String path) |
SingleSignOnAuthenticationMechanism | setSecure(boolean secure) |
public SingleSignOnAuthenticationMechanism(SingleSignOnManager storage)
public SingleSignOnAuthenticationMechanism(SingleSignOnManager storage, IdentityManager identityManager)
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 Session getSession(HttpServerExchange exchange)
public String getCookieName()
public SingleSignOnAuthenticationMechanism setCookieName(String cookieName)
public boolean isHttpOnly()
public SingleSignOnAuthenticationMechanism setHttpOnly(boolean httpOnly)
public boolean isSecure()
public SingleSignOnAuthenticationMechanism setSecure(boolean secure)
public String getDomain()
public SingleSignOnAuthenticationMechanism setDomain(String domain)
public String getPath()
public SingleSignOnAuthenticationMechanism setPath(String path)
Copyright © 2017 JBoss by Red Hat. All rights reserved.