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,
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.
|
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.
|
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, 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 getValidFromDate()
Assertion
getValidFromDate
in interface Assertion
public Date getValidUntilDate()
Assertion
getValidUntilDate
in interface Assertion
public Map<String,Object> getAttributes()
Assertion
getAttributes
in interface Assertion
public AttributePrincipal getPrincipal()
Assertion
getPrincipal
in interface Assertion
Copyright © 2006–2013 Jasig. All rights reserved.