public final class AssertionImpl extends Object implements Assertion
Assertion.| Constructor and Description |
|---|
AssertionImpl(AttributePrincipal principal)
Creates a new Assertion with the supplied Principal.
|
AssertionImpl(AttributePrincipal principal,
Date validFromDate,
Date validUntilDate,
Date authenticationDate,
Map<String,Object> attributes)
Creates a new Assertion with the supplied principal, Assertion attributes, and start and valid until dates.
|
AssertionImpl(AttributePrincipal principal,
Map<String,Object> attributes)
Create a new Assertion with the supplied principal and Assertion attributes.
|
AssertionImpl(String name)
Constructs a new Assertion with a Principal of the supplied name, a valid from date of now, no valid until date, and no attributes.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAttributes()
The key/value pairs associated with this assertion.
|
Date |
getAuthenticationDate()
The date the authentication actually occurred on.
|
AttributePrincipal |
getPrincipal()
The principal for which this assertion is valid.
|
Date |
getValidFromDate()
The date from which the assertion is valid from.
|
Date |
getValidUntilDate()
The date which the assertion is valid until.
|
boolean |
isValid()
Determines whether an Assertion is considered usable or not.
|
public AssertionImpl(String name)
name - the name of the principal for which this assertion is valid.public AssertionImpl(AttributePrincipal principal)
principal - the Principal to associate with the Assertion.public AssertionImpl(AttributePrincipal principal, Map<String,Object> attributes)
principal - the Principal to associate with the Assertion.attributes - the key/value pairs for this attribute.public AssertionImpl(AttributePrincipal principal, Date validFromDate, Date validUntilDate, Date authenticationDate, Map<String,Object> attributes)
principal - the Principal to associate with the Assertion.validFromDate - when the assertion is valid from.validUntilDate - when the assertion is valid to.attributes - the key/value pairs for this attribute.public Date getAuthenticationDate()
AssertiongetAuthenticationDate in interface Assertionpublic Date getValidFromDate()
AssertiongetValidFromDate in interface Assertionpublic Date getValidUntilDate()
AssertiongetValidUntilDate in interface Assertionpublic Map<String,Object> getAttributes()
AssertiongetAttributes in interface Assertionpublic AttributePrincipal getPrincipal()
AssertiongetPrincipal in interface AssertionCopyright © 2006-2014 Jasig. All Rights Reserved.