public class AuthenticationQuery extends SubjectQuery
SubjectQuery
.
It represents the query for an authentication assertion. It corresponds
to the <samlp:AuthenticationQueryType>
in the SAML
protocol schema.Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 <samlp:AuthenticationQuery>
element.
|
getSubject
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
. May not be null.authMethod
- the AuthenticationMethod
in string format. It could be null.SAMLException
- If subject was null.public AuthenticationQuery(Subject subject) throws SAMLException
subject
- The Subject of the AuthenticationQuery
. May not be null.SAMLException
- If subject was null.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.public String toString(boolean includeNS, boolean declareNS)
Copyright © 2010-2018, ForgeRock All Rights Reserved.