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
 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(List audiences)
          Sets the audiences
 String toXMLString()
          Returns a String representation
 String toXMLString(boolean includeNSPrefix, boolean declareNS)
          Returns a String representation
 

Method Detail

getAudience

List getAudience()
Returns a list of String represented audiences

Returns:
a list of String represented audiences

setAudience

void setAudience(List audiences)
                 throws SAML2Exception
Sets the audiences

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

toXMLString

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

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

void makeImmutable()
Makes the object immutable

Specified by:
makeImmutable in interface ConditionAbstract

isMutable

boolean isMutable()
Returns true if the object is mutable

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