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.


Field Summary
static int ATTRIBUTE_QUERY
          The Query is an Attribute Query.
static int AUTHENTICATION_QUERY
          The Query is an Authentication Query.
static int AUTHORIZATION_DECISION_QUERY
          The Query is an Authorization Decision Query.
static int NOT_SUPPORTED_QUERY
          The Query is unsupported.
 
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
 

Field Detail

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.
Method Detail

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 converted
declareNS - Determines whether or not the namespace is declared within the Element.
Returns:
A string containing the valid XML for this element


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.