com.sun.identity.saml2.assertion
Interface AudienceRestriction

All Superinterfaces:
ConditionAbstract

public interface AudienceRestriction
extends ConditionAbstract

The AudienceRestriction specifies that the assertion is addressed to one or more specific Audiences.


Method Summary
 java.util.List getAudience()
          Returns a list of String represented audiences
 boolean isMutable()
          Returns true if the object is mutable
 void makeImmutable()
          Makes the object immutable
 void setAudience(java.util.List audiences)
          Sets the audiences
 java.lang.String toXMLString()
          Returns a String representation
 java.lang.String toXMLString(boolean includeNSPrefix, boolean declareNS)
          Returns a String representation
 

Method Detail

getAudience

public java.util.List getAudience()
Returns a list of String represented audiences

Returns:
a list of String represented audiences

setAudience

public void setAudience(java.util.List audiences)
                 throws SAML2Exception
Sets the audiences

Parameters:
audiences - List of audiences as URI strings
Throws:
SAML2Exception - if the object is immutable

toXMLString

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

Specified by:
toXMLString in interface ConditionAbstract
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

Specified by:
toXMLString in interface ConditionAbstract
Returns:
A String representation
Throws:
SAML2Exception - if something is wrong during conversion

makeImmutable

public void makeImmutable()
Makes the object immutable

Specified by:
makeImmutable in interface ConditionAbstract

isMutable

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

Specified by:
isMutable in interface ConditionAbstract
Returns:
true if the object is mutable


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