public final class ExternalAuthenticationContext extends BaseContext
AuthenticationContextBaseContext.ContextSetNoRemoveIteratorDecorator| Modifier and Type | Field and Description |
|---|---|
private Collection<String> |
authenticatingAuthorities
Proxied authenticating sources.
|
private String |
authnError
Error message.
|
private Exception |
authnException
Exception.
|
private org.joda.time.DateTime |
authnInstant
Time of authentication.
|
private boolean |
doNotCache
Flag preventing caching of result for SSO.
|
private String |
flowExecutionUrl
Value of flowExecutionUrl on branching from flow.
|
private boolean |
previousResult
Flag indicating this "new" result is really "old".
|
private Principal |
principal
A
Principal that was authenticated. |
private String |
principalName
Name of a principal that was authenticated.
|
private Subject |
subject
Name of a
Subject that was authenticated. |
| Constructor and Description |
|---|
ExternalAuthenticationContext()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
doNotCache()
Get the "do not cache" flag.
|
Collection<String> |
getAuthenticatingAuthorities()
Get a mutable, ordered list of proxied authentication sources.
|
String |
getAuthnError()
Get an error message from the authentication process.
|
Exception |
getAuthnException()
Get an exception from the authentication process.
|
org.joda.time.DateTime |
getAuthnInstant()
Get the time of authentication.
|
String |
getFlowExecutionUrl()
Get the flow execution URL to return control to.
|
Principal |
getPrincipal()
Get a
Principal that was authenticated. |
String |
getPrincipalName()
Get the name of a principal that was authenticated.
|
Subject |
getSubject()
Get a
Subject that was authenticated. |
boolean |
isPreviousResult()
Get whether this result is the product of an external SSO event and not
a new act of authentication.
|
ExternalAuthenticationContext |
setAuthnError(String message)
Set an error message from the authentication process.
|
ExternalAuthenticationContext |
setAuthnException(Exception exception)
Set an exception from the authentication process.
|
ExternalAuthenticationContext |
setAuthnInstant(org.joda.time.DateTime instant)
Set the time of authentication.
|
ExternalAuthenticationContext |
setDoNotCache(boolean flag)
Set the "do not cache" flag.
|
ExternalAuthenticationContext |
setFlowExecutionUrl(String url)
Set the flow execution URL to return control to.
|
ExternalAuthenticationContext |
setPreviousResult(boolean flag)
Set whether this result is the product of an external SSO event and not
a new act of authentication.
|
ExternalAuthenticationContext |
setPrincipal(Principal prin)
Set a
Principal that was authenticated. |
ExternalAuthenticationContext |
setPrincipalName(String name)
Set the name of a principal that was authenticated.
|
ExternalAuthenticationContext |
setSubject(Subject sub)
Set a
Subject that was authenticated. |
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent@Nullable private String flowExecutionUrl
@Nullable private org.joda.time.DateTime authnInstant
@Nonnull private Collection<String> authenticatingAuthorities
private boolean doNotCache
private boolean previousResult
public ExternalAuthenticationContext()
@Nullable public String getFlowExecutionUrl()
@Nonnull public ExternalAuthenticationContext setFlowExecutionUrl(@Nullable String url)
url - return location@Nullable public Principal getPrincipal()
Principal that was authenticated.@Nonnull public ExternalAuthenticationContext setPrincipal(@Nullable Principal prin)
Principal that was authenticated.prin - principal to set@Nullable public String getPrincipalName()
@Nonnull public ExternalAuthenticationContext setPrincipalName(@Nullable String name)
name - name of principal to set@Nullable public Subject getSubject()
Subject that was authenticated.@Nonnull public ExternalAuthenticationContext setSubject(@Nullable Subject sub)
Subject that was authenticated.sub - The subject to set@Nullable public org.joda.time.DateTime getAuthnInstant()
@Nonnull public ExternalAuthenticationContext setAuthnInstant(@Nullable org.joda.time.DateTime instant)
instant - time of authentication to set@Nonnull @Live public Collection<String> getAuthenticatingAuthorities()
@Nullable public String getAuthnError()
@Nonnull public ExternalAuthenticationContext setAuthnError(@Nullable String message)
message - message to set@Nullable public Exception getAuthnException()
@Nonnull public ExternalAuthenticationContext setAuthnException(@Nullable Exception exception)
exception - exception to setpublic boolean doNotCache()
@Nonnull public ExternalAuthenticationContext setDoNotCache(boolean flag)
flag - flag to setpublic boolean isPreviousResult()
@Nonnull public ExternalAuthenticationContext setPreviousResult(boolean flag)
flag - flag to setCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.