AuthenticationMechanism
public class SingleSignOnAuthenticationMechanism extends java.lang.Object implements AuthenticationMechanism
AuthenticationMechanism.AuthenticationMechanismOutcome, AuthenticationMechanism.ChallengeResult
Constructor | Description |
---|---|
SingleSignOnAuthenticationMechanism(SingleSignOnManager storage) |
|
SingleSignOnAuthenticationMechanism(SingleSignOnManager storage,
IdentityManager identityManager) |
Modifier and Type | Method | Description |
---|---|---|
AuthenticationMechanism.AuthenticationMechanismOutcome |
authenticate(HttpServerExchange exchange,
SecurityContext securityContext) |
Perform authentication of the request.
|
java.lang.String |
getCookieName() |
|
java.lang.String |
getDomain() |
|
java.lang.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(java.lang.String cookieName) |
|
SingleSignOnAuthenticationMechanism |
setDomain(java.lang.String domain) |
|
SingleSignOnAuthenticationMechanism |
setHttpOnly(boolean httpOnly) |
|
SingleSignOnAuthenticationMechanism |
setPath(java.lang.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 java.lang.String getCookieName()
public SingleSignOnAuthenticationMechanism setCookieName(java.lang.String cookieName)
public boolean isHttpOnly()
public SingleSignOnAuthenticationMechanism setHttpOnly(boolean httpOnly)
public boolean isSecure()
public SingleSignOnAuthenticationMechanism setSecure(boolean secure)
public java.lang.String getDomain()
public SingleSignOnAuthenticationMechanism setDomain(java.lang.String domain)
public java.lang.String getPath()
public SingleSignOnAuthenticationMechanism setPath(java.lang.String path)
Copyright © 2018. All rights reserved.