Package com.sun.identity.saml2.assertion
Interface AudienceRestriction
-
- All Superinterfaces:
ConditionAbstract
- All Known Implementing Classes:
AudienceRestrictionImpl
public interface AudienceRestriction extends ConditionAbstract
TheAudienceRestrictionspecifies that the assertion is addressed to one or more specificAudiences.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListgetAudience()Returns a list ofStringrepresented audiencesbooleanisMutable()Returns true if the object is mutablevoidmakeImmutable()Makes the object immutablevoidsetAudience(List audiences)Sets the audiencesStringtoXMLString()Returns a String representationStringtoXMLString(boolean includeNSPrefix, boolean declareNS)Returns a String representation
-
-
-
Method Detail
-
getAudience
List getAudience()
Returns a list ofStringrepresented audiences- Returns:
- a list of
Stringrepresented 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:
toXMLStringin interfaceConditionAbstract- Parameters:
includeNSPrefix- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS- 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:
toXMLStringin interfaceConditionAbstract- Returns:
- A String representation
- Throws:
SAML2Exception- if something is wrong during conversion
-
makeImmutable
void makeImmutable()
Makes the object immutable- Specified by:
makeImmutablein interfaceConditionAbstract
-
isMutable
boolean isMutable()
Returns true if the object is mutable- Specified by:
isMutablein interfaceConditionAbstract- Returns:
- true if the object is mutable
-
-