public class AttributeQuery extends SubjectQuery
SubjectQuery
.
It represents the query for an attribute assertion. It corresponds
to the samlp:AttributeQueryType
in the SAML protocol schema.Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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. |
getSubject
protected AttributeQuery()
public AttributeQuery(Element element) throws SAMLException
element
- the DOM tree element which contains an Attribute Query.SAMLException
- If there was an error while constructing this object.public AttributeQuery(Subject theSubject, List designators, String theResource) throws SAMLException
theSubject
- Subject of this query.designators
- List of AttributeDesignators
of this
query.theResource
- the Resource attribute of this query in String format.SAMLException
- If there was an error while constructing this object.public AttributeQuery(Subject theSubject, List designators) throws SAMLException
AttributeQuery
with a list of
AttributeDesignators
.theSubject
- Subject of this query.designators
- List of AttributeDesignators
of this
query.SAMLException
- If there was an error while constructing this object.public AttributeQuery(Subject theSubject) throws SAMLException
AttributeQuery
with 0
AttributeDesignator
, and no Resource attribute.theSubject
- Subject of this query.SAMLException
- If there was an error while constructing this object.public String getResource()
public List getAttributeDesignator()
AttributeDesignators
.AttributeDesignators
(s) associated with this
query. It could contain 0 or more
AttributeDesignators
.public int getQueryType()
getQueryType
in class Query
public String toString()
AttributeQuery
object.public String toString(boolean includeNS, boolean declareNS)
samlp:AttributeQuery
element.toString
in class Query
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.Copyright © 2010-2018, ForgeRock All Rights Reserved.