com.sun.identity.saml2.assertion
Interface Conditions


public interface Conditions

The Conditions defines the SAML constructs that place constraints on the acceptable use if SAML Assertions.


Method Summary
 boolean checkDateValidity(long someTime)
          Return true if a specific Date falls within the validity interval of this set of conditions.
 java.util.List getAudienceRestrictions()
          Returns a list of AudienceRestriction
 java.util.List getConditions()
          Returns a list of Condition
 java.util.Date getNotBefore()
          Returns the time instant before which the subject cannot be confirmed.
 java.util.Date getNotOnOrAfter()
          Returns the time instant at which the subject can no longer be confirmed.
 java.util.List getOneTimeUses()
          Returns a list of OneTimeUse
 java.util.List getProxyRestrictions()
          Returns a list of ProxyRestriction
 boolean isMutable()
          Returns true if the object is mutable
 void makeImmutable()
          Makes the object immutable
 void setAudienceRestrictions(java.util.List ars)
          Sets a list of AudienceRestriction
 void setConditions(java.util.List conditions)
          Sets a list of Condition
 void setNotBefore(java.util.Date value)
          Sets the time instant before which the subject cannot be confirmed.
 void setNotOnOrAfter(java.util.Date value)
          Sets the time instant at which the subject can no longer be confirmed.
 void setOneTimeUses(java.util.List oneTimeUses)
          Sets a list of OneTimeUse
 void setProxyRestrictions(java.util.List prs)
          Sets a list of ProxyRestriction
 java.lang.String toXMLString()
          Returns a String representation
 java.lang.String toXMLString(boolean includeNSPrefix, boolean declareNS)
          Returns a String representation
 

Method Detail

getNotOnOrAfter

public java.util.Date getNotOnOrAfter()
Returns the time instant at which the subject can no longer be confirmed.

Returns:
the time instant at which the subject can no longer be confirmed.

setNotOnOrAfter

public void setNotOnOrAfter(java.util.Date value)
                     throws SAML2Exception
Sets the time instant at which the subject can no longer be confirmed.

Parameters:
value - the time instant at which the subject can no longer be confirmed.
Throws:
SAML2Exception - if the object is immutable

getConditions

public java.util.List getConditions()
Returns a list of Condition

Returns:
a list of Condition

getAudienceRestrictions

public java.util.List getAudienceRestrictions()
Returns a list of AudienceRestriction

Returns:
a list of AudienceRestriction

getOneTimeUses

public java.util.List getOneTimeUses()
Returns a list of OneTimeUse

Returns:
a list of OneTimeUse

getProxyRestrictions

public java.util.List getProxyRestrictions()
Returns a list of ProxyRestriction

Returns:
a list of ProxyRestriction

setConditions

public void setConditions(java.util.List conditions)
                   throws SAML2Exception
Sets a list of Condition

Parameters:
conditions - a list of Condition
Throws:
SAML2Exception - if the object is immutable

setAudienceRestrictions

public void setAudienceRestrictions(java.util.List ars)
                             throws SAML2Exception
Sets a list of AudienceRestriction

Parameters:
ars - a list of AudienceRestriction
Throws:
SAML2Exception - if the object is immutable

setOneTimeUses

public void setOneTimeUses(java.util.List oneTimeUses)
                    throws SAML2Exception
Sets a list of OneTimeUse

Parameters:
oneTimeUses - a list of OneTimeUse
Throws:
SAML2Exception - if the object is immutable

setProxyRestrictions

public void setProxyRestrictions(java.util.List prs)
                          throws SAML2Exception
Sets a list of ProxyRestriction

Parameters:
prs - a list of ProxyRestriction
Throws:
SAML2Exception - if the object is immutable

getNotBefore

public java.util.Date getNotBefore()
Returns the time instant before which the subject cannot be confirmed.

Returns:
the time instant before which the subject cannot be confirmed.

setNotBefore

public void setNotBefore(java.util.Date value)
                  throws SAML2Exception
Sets the time instant before which the subject cannot be confirmed.

Parameters:
value - the time instant before which the subject cannot be confirmed.
Throws:
SAML2Exception - if the object is immutable

checkDateValidity

public boolean checkDateValidity(long someTime)
Return true if a specific Date falls within the validity interval of this set of conditions.

Parameters:
someTime - a time in milliseconds.
Returns:
true if someTime is within the valid interval of the Conditions.

toXMLString

public java.lang.String toXMLString(boolean includeNSPrefix,
                                    boolean declareNS)
                             throws SAML2Exception
Returns a String representation

Parameters:
includeNSPrefix - Determines whether or not the namespace qualifier is prepended to the Element when converted
declareNS - Determines whether or not the namespace is declared within the Element.
Returns:
A String representation
Throws:
SAML2Exception - if something is wrong during conversion

toXMLString

public java.lang.String toXMLString()
                             throws SAML2Exception
Returns a String representation

Returns:
A String representation
Throws:
SAML2Exception - if something is wrong during conversion

makeImmutable

public void makeImmutable()
Makes the object immutable


isMutable

public boolean isMutable()
Returns true if the object is mutable

Returns:
true if the object is mutable


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.