com.sun.identity.saml.protocol
クラス AttributeQuery

java.lang.Object
  上位を拡張 com.sun.identity.saml.protocol.Query
      上位を拡張 com.sun.identity.saml.protocol.SubjectQuery
          上位を拡張 com.sun.identity.saml.protocol.AttributeQuery

public class AttributeQuery
extends SubjectQuery

This concrete class extends from the abstract base class SubjectQuery. It represents the query for an attribute assertion. It corresponds to the samlp:AttributeQueryType in the SAML protocol schema.


フィールドの概要
protected  List attributeDesignators
          O or more AttributeDesignator of this query.
protected  String resource
           
 
クラス com.sun.identity.saml.protocol.SubjectQuery から継承されたフィールド
subject
 
クラス com.sun.identity.saml.protocol.Query から継承されたフィールド
ATTRIBUTE_QUERY, AUTHENTICATION_QUERY, AUTHORIZATION_DECISION_QUERY, NOT_SUPPORTED_QUERY
 
コンストラクタの概要
protected AttributeQuery()
          Default constructor
  AttributeQuery(Element element)
          This constructor is used to build an Attribute Query from a DOM tree that was built from the XML string.
  AttributeQuery(Subject theSubject)
          Constructor to construct an AttributeQuery with 0 AttributeDesignator, and no Resource attribute.
  AttributeQuery(Subject theSubject, List designators)
          Constructor to construct an AttributeQuery with a list of AttributeDesignators.
  AttributeQuery(Subject theSubject, List designators, String theResource)
          Constructor.
 
メソッドの概要
 List getAttributeDesignator()
          Returns the AttributeDesignators.
 int getQueryType()
          Returns the type of the query.
 String getResource()
          Returns the Resource String.
 String toString()
          Returns the String Representation of the AttributeQuery object.
 String toString(boolean includeNS, boolean declareNS)
          Returns a String representation of the samlp:AttributeQuery element.
 
クラス com.sun.identity.saml.protocol.SubjectQuery から継承されたメソッド
getSubject
 

フィールドの詳細

attributeDesignators

protected List attributeDesignators
O or more AttributeDesignator of this query.


resource

protected String resource
コンストラクタの詳細

AttributeQuery

protected AttributeQuery()
Default constructor


AttributeQuery

public AttributeQuery(Element element)
               throws SAMLException
This constructor is used to build an Attribute Query from a DOM tree that was built from the XML string.

パラメータ:
element - the DOM tree element which contains an Attribute Query.
例外:
SAMLException

AttributeQuery

public AttributeQuery(Subject theSubject,
                      List designators,
                      String theResource)
               throws SAMLException
Constructor.

パラメータ:
theSubject - Subject of this query.
designators - List of AttributeDesignators of this query.
theResource - the Resource attribute of this query in String format.
例外:
SAMLException

AttributeQuery

public AttributeQuery(Subject theSubject,
                      List designators)
               throws SAMLException
Constructor to construct an AttributeQuery with a list of AttributeDesignators.

パラメータ:
theSubject - Subject of this query.
designators - List of AttributeDesignators of this query.
例外:
SAMLException

AttributeQuery

public AttributeQuery(Subject theSubject)
               throws SAMLException
Constructor to construct an AttributeQuery with 0 AttributeDesignator, and no Resource attribute.

パラメータ:
theSubject - Subject of this query.
例外:
SAMLException
メソッドの詳細

getResource

public String getResource()
Returns the Resource String.

戻り値:
the Resource associated with this query in String format; or null if there is none.

getAttributeDesignator

public List getAttributeDesignator()
Returns the AttributeDesignators.

戻り値:
the AttributeDesignators(s) associated with this query. It could contain 0 or more AttributeDesignators.

getQueryType

public int getQueryType()
Returns the type of the query.

定義:
クラス Query 内の getQueryType
戻り値:
an integer which is Query.ATTRIBUTE_QUERY.

toString

public String toString()
Returns the String Representation of the AttributeQuery object.

オーバーライド:
クラス Object 内の toString
戻り値:
XML String representing the AttributeQuery.

toString

public String toString(boolean includeNS,
                       boolean declareNS)
Returns a String representation of the samlp:AttributeQuery element.

定義:
クラス Query 内の 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.