com.sun.identity.saml.assertion
クラス AudienceRestrictionCondition

java.lang.Object
  上位を拡張 com.sun.identity.saml.assertion.Condition
      上位を拡張 com.sun.identity.saml.assertion.AudienceRestrictionCondition

public class AudienceRestrictionCondition
extends Condition

This is an implementation of the abstract Condition class, which specifes that the assertion this AuthenticationCondition is part of, is addressed to one or more specific audience.


フィールドの概要
 
クラス com.sun.identity.saml.assertion.Condition から継承されたフィールド
INDETERMINATE, INVALID, VALID
 
コンストラクタの概要
AudienceRestrictionCondition(Element audienceRestrictionConditionElement)
          Constructs an AudienceRestrictionCondition element from an existing XML block.
AudienceRestrictionCondition(List audience)
          Constructs AudienceRestrictionCondition with a List of audience for this condition, each of them being a String.
 
メソッドの概要
 boolean addAudience(String audience)
          Adds an audience to this Condition element
 boolean containsAudience(String audience)
          Returns true if a particular audience string is contained within this AudienceRestrictionCondition object
 int evaluate()
          Evaluates this condition This method can be overridden by a plug-in which provides means of evaluating this condition
 List getAudience()
          Returns list of Audience held within this Condition element
 boolean removeAudience(String audience)
          Removes an audience from the List within this Condition element
 boolean setAudience(List audience)
          Adds a List of audience held within this Condition element
 String toString()
          Returns a String representation of the element.
 String toString(boolean includeNS, boolean declareNS)
          Returns a String representation of the <AudienceRestrictionCondition> element.
 

コンストラクタの詳細

AudienceRestrictionCondition

public AudienceRestrictionCondition(Element audienceRestrictionConditionElement)
                             throws SAMLException
Constructs an AudienceRestrictionCondition element from an existing XML block.

パラメータ:
audienceRestrictionConditionElement - A org.w3c.dom.Element representing DOM tree for AudienceRestrictionCondition object.
例外:
SAMLException - if it could not process the org.w3c.dom.Element properly, implying that there is an error in the sender or in the element definition.

AudienceRestrictionCondition

public AudienceRestrictionCondition(List audience)
                             throws SAMLException
Constructs AudienceRestrictionCondition with a List of audience for this condition, each of them being a String.

パラメータ:
audience - A List of audience to be included within this condition
例外:
SAMLException - if the List is empty or if there is some error in processing the contents of the List
メソッドの詳細

addAudience

public boolean addAudience(String audience)
Adds an audience to this Condition element

パラメータ:
audience - audience to be added
戻り値:
boolean indicating success or failure of operation

setAudience

public boolean setAudience(List audience)
Adds a List of audience held within this Condition element

パラメータ:
audience - A List of audience to be included within this condition
戻り値:
boolean indicating success or failure of operation.

getAudience

public List getAudience()
Returns list of Audience held within this Condition element

戻り値:
An the List of Audience within this Condition element

containsAudience

public boolean containsAudience(String audience)
Returns true if a particular audience string is contained within this AudienceRestrictionCondition object

パラメータ:
audience - audience to be checked
戻り値:
true if the audience exists.

removeAudience

public boolean removeAudience(String audience)
Removes an audience from the List within this Condition element

パラメータ:
audience - A string representing the value of the Audience
戻り値:
boolean true/false representing success or failure of the operation

toString

public String toString()
Returns a String representation of the element.

オーバーライド:
クラス Object 内の toString
戻り値:
A string containing the valid XML for this element By default name space name is prepended to the element name example <saml:AudienceRestrictionCondition>.

toString

public String toString(boolean includeNS,
                       boolean declareNS)
Returns a String representation of the <AudienceRestrictionCondition> element.

定義:
クラス Condition 内の toString
パラメータ:
includeNS - 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.
戻り値:
A string containing the valid XML for this element

evaluate

public int evaluate()
Evaluates this condition This method can be overridden by a plug-in which provides means of evaluating this condition

定義:
クラス Condition 内の evaluate
戻り値:
evaluation status.