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 java.lang.Object
This is an abstract base class for SAML query. It corresponds to the
<samlp:QueryAbstractType>
in SAML protocol schema.
Method Summary |
abstract int |
getQueryType()
Returns the type of the Query such as AuthenticationQuery or
AuthorizationDecisionQuery . |
abstract java.lang.String |
toString(boolean includeNS,
boolean declareNS)
Creates a String representation of the element. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOT_SUPPORTED_QUERY
public static final int NOT_SUPPORTED_QUERY
- The Query is unsupported.
AUTHENTICATION_QUERY
public static final int AUTHENTICATION_QUERY
- The Query is an Authentication Query.
AUTHORIZATION_DECISION_QUERY
public static final int AUTHORIZATION_DECISION_QUERY
- The Query is an Authorization Decision Query.
ATTRIBUTE_QUERY
public static final int ATTRIBUTE_QUERY
- The Query is an Attribute Query.
getQueryType
public abstract int getQueryType()
- Returns the type of the Query such as
AuthenticationQuery
or
AuthorizationDecisionQuery
.
- Returns:
- the type of Query.
toString
public abstract java.lang.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