org.jasig.cas.client.validation
Class AssertionImpl

java.lang.Object
  extended by org.jasig.cas.client.validation.AssertionImpl
All Implemented Interfaces:
java.io.Serializable, Assertion

public final class AssertionImpl
extends java.lang.Object
implements Assertion

Concrete Implementation of the Assertion.

Since:
3.1
Version:
$Revision$ $Date$
Author:
Scott Battaglia
See Also:
Serialized Form

Constructor Summary
AssertionImpl(AttributePrincipal principal)
          Creates a new Assrtion with the supplied Principal.
AssertionImpl(AttributePrincipal principal, java.util.Date validFromDate, java.util.Date validUntilDate, java.util.Map attributes)
          Creats a new Assertion with the supplied principal, Assertion attributes, and start and valid until dates.
AssertionImpl(AttributePrincipal principal, java.util.Map attributes)
          Create a new Assertion with the supplied principal and Assertion attributes.
AssertionImpl(java.lang.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.
 
Method Summary
 java.util.Map getAttributes()
          The key/value pairs associated with this assertion.
 AttributePrincipal getPrincipal()
          The principal for which this assertion is valid.
 java.util.Date getValidFromDate()
          The date from which the assertion is valid from.
 java.util.Date getValidUntilDate()
          The date which the assertion is valid until.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertionImpl

public AssertionImpl(java.lang.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.

Parameters:
name - the name of the principal for which this assertion is valid.

AssertionImpl

public AssertionImpl(AttributePrincipal principal)
Creates a new Assrtion with the supplied Principal.

Parameters:
principal - the Principal to associate with the Assertion.

AssertionImpl

public AssertionImpl(AttributePrincipal principal,
                     java.util.Map attributes)
Create a new Assertion with the supplied principal and Assertion attributes.

Parameters:
principal - the Principal to associate with the Assertion.
attributes - the key/value pairs for this attribute.

AssertionImpl

public AssertionImpl(AttributePrincipal principal,
                     java.util.Date validFromDate,
                     java.util.Date validUntilDate,
                     java.util.Map attributes)
Creats a new Assertion with the supplied principal, Assertion attributes, and start and valid until dates.

Parameters:
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.
Method Detail

getValidFromDate

public java.util.Date getValidFromDate()
Description copied from interface: Assertion
The date from which the assertion is valid from.

Specified by:
getValidFromDate in interface Assertion
Returns:
the valid from date.

getValidUntilDate

public java.util.Date getValidUntilDate()
Description copied from interface: Assertion
The date which the assertion is valid until.

Specified by:
getValidUntilDate in interface Assertion
Returns:
the valid until date.

getAttributes

public java.util.Map getAttributes()
Description copied from interface: Assertion
The key/value pairs associated with this assertion.

Specified by:
getAttributes in interface Assertion
Returns:
the map of attributes.

getPrincipal

public AttributePrincipal getPrincipal()
Description copied from interface: Assertion
The principal for which this assertion is valid.

Specified by:
getPrincipal in interface Assertion
Returns:
the principal.


Copyright © 2006-2009 JA-SIG. All Rights Reserved.