Package com.sun.identity.saml.protocol
Class Query
- java.lang.Object
-
- com.sun.identity.saml.protocol.Query
-
- Direct Known Subclasses:
SubjectQuery
public abstract class Query extends Object
This is an abstract base class for SAML query. It corresponds to the<samlp:QueryAbstractType>in SAML protocol schema.
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTE_QUERYThe Query is an Attribute Query.static intAUTHENTICATION_QUERYThe Query is an Authentication Query.static intAUTHORIZATION_DECISION_QUERYThe Query is an Authorization Decision Query.static intNOT_SUPPORTED_QUERYThe Query is unsupported.
-
Constructor Summary
Constructors Modifier Constructor Description protectedQuery()default constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract intgetQueryType()Returns the type of the Query such asAuthenticationQueryorAuthorizationDecisionQuery.abstract StringtoString(boolean includeNS, boolean declareNS)Creates a String representation of the element.
-
-
-
Field Detail
-
NOT_SUPPORTED_QUERY
public static final int NOT_SUPPORTED_QUERY
The Query is unsupported.- See Also:
- Constant Field Values
-
AUTHENTICATION_QUERY
public static final int AUTHENTICATION_QUERY
The Query is an Authentication Query.- See Also:
- Constant Field Values
-
AUTHORIZATION_DECISION_QUERY
public static final int AUTHORIZATION_DECISION_QUERY
The Query is an Authorization Decision Query.- See Also:
- Constant Field Values
-
ATTRIBUTE_QUERY
public static final int ATTRIBUTE_QUERY
The Query is an Attribute Query.- See Also:
- Constant Field Values
-
-
Method Detail
-
getQueryType
public abstract int getQueryType()
Returns the type of the Query such asAuthenticationQueryorAuthorizationDecisionQuery.- Returns:
- the type of Query.
-
toString
public abstract String toString(boolean includeNS, boolean declareNS)
Creates a String representation of the element.- Parameters:
includeNS- 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 containing the valid XML for this element
-
-