|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.saml.protocol.Query com.sun.identity.saml.protocol.SubjectQuery com.sun.identity.saml.protocol.AuthenticationQuery
public class AuthenticationQuery
This concrete class extends from the abstract base class
SubjectQuery
.
It represents the query for an authentication assertion. It corresponds
to the <samlp:AuthenticationQueryType>
in the SAML
protocol schema.
Field Summary | |
---|---|
protected String |
authMethod
|
Fields inherited from class com.sun.identity.saml.protocol.SubjectQuery |
---|
subject |
Fields inherited from class com.sun.identity.saml.protocol.Query |
---|
ATTRIBUTE_QUERY, AUTHENTICATION_QUERY, AUTHORIZATION_DECISION_QUERY, NOT_SUPPORTED_QUERY |
Constructor Summary | |
---|---|
protected |
AuthenticationQuery()
Default Constructor |
|
AuthenticationQuery(Element element)
This constructor is used to build an Authentication Query from a DOM tree that was built from the XML string. |
|
AuthenticationQuery(Subject subject)
Constructor. |
|
AuthenticationQuery(Subject subject,
String authMethod)
Constructor. |
Method Summary | |
---|---|
String |
getAuthenticationMethod()
Returns the AuthenticationMethod . |
int |
getQueryType()
Returns the type of this query. |
String |
toString()
Translates the AuthenticationQuery to an XML document
String based on the AuthenticationQuery schema described
above. |
String |
toString(boolean includeNS,
boolean declareNS)
Returns a String representation of the |
Methods inherited from class com.sun.identity.saml.protocol.SubjectQuery |
---|
getSubject |
Field Detail |
---|
protected String authMethod
Constructor Detail |
---|
protected AuthenticationQuery()
public AuthenticationQuery(Element element) throws SAMLException
element
- the DOM tree element which contains an Authentication
Query.
SAMLException
- when an error occurs.public AuthenticationQuery(Subject subject, String authMethod) throws SAMLException
subject
- the Subject of the AuthenticationQuery
.authMethod
- the AuthenticationMethod
in string
format. It could be null.
SAMLException
public AuthenticationQuery(Subject subject) throws SAMLException
subject
- The Subject of the AuthenticationQuery
.
SAMLException
Method Detail |
---|
public String getAuthenticationMethod()
AuthenticationMethod
.
AuthenticationMethod
in string format; or null
if there is none.public int getQueryType()
getQueryType
in class Query
Query.AUTHENTICATION_QUERY
.public String toString()
AuthenticationQuery
to an XML document
String based on the AuthenticationQuery
schema described
above.
toString
in class Object
AuthenticationQuery
.public String toString(boolean includeNS, boolean declareNS)
toString
in class Query
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |