Class AuthnQueryImpl
- java.lang.Object
-
- com.sun.identity.saml2.protocol.impl.RequestAbstractImpl
-
- com.sun.identity.saml2.protocol.impl.SubjectQueryAbstractImpl
-
- com.sun.identity.saml2.protocol.impl.AuthnQueryImpl
-
- All Implemented Interfaces:
AuthnQuery,RequestAbstract,SubjectQueryAbstract
public class AuthnQueryImpl extends SubjectQueryAbstractImpl implements AuthnQuery
-
-
Field Summary
Fields Modifier and Type Field Description protected RequestedAuthnContextrequestedAuthnContextprotected StringsessionIndex-
Fields inherited from class com.sun.identity.saml2.protocol.impl.SubjectQueryAbstractImpl
subject
-
Fields inherited from class com.sun.identity.saml2.protocol.impl.RequestAbstractImpl
consent, destinationURI, elementName, extensions, isMutable, isSignatureValid, isSigned, issueInstant, nameID, publicKey, requestId, signatureString, signedXMLString, version
-
-
Constructor Summary
Constructors Constructor Description AuthnQueryImpl()Constructor to createAuthnQueryObject .AuthnQueryImpl(String xmlString)Constructor to createAuthnQueryObject.AuthnQueryImpl(Element element)Constructor to createAuthnQueryObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestedAuthnContextgetRequestedAuthnContext()Returns theRequestedAuthnContextobject.StringgetSessionIndex()Returns the value of theSessionIndexattribute.protected voidgetXMLString(Set namespaces, StringBuffer attrs, StringBuffer childElements, boolean includeNSPrefix, boolean declareNS)protected voidparseDOMAttributes(Element element)Parses attributes of the Docuemnt Element for this object.protected voidparseDOMChileElements(ListIterator iter)Parses child elements of the Docuemnt Element for this object.voidsetRequestedAuthnContext(RequestedAuthnContext requestedAuthnContext)Sets theRequestedAuthnContextobject.voidsetSessionIndex(String sessionIndex)Sets the value ofSessionIndexattribute.-
Methods inherited from class com.sun.identity.saml2.protocol.impl.SubjectQueryAbstractImpl
getSubject, setSubject, validateData
-
Methods inherited from class com.sun.identity.saml2.protocol.impl.RequestAbstractImpl
getAttributesString, getConsent, getDestination, getElements, getExtensions, getID, getIssueInstant, getIssuer, getSignature, getVersion, isMutable, isSignatureValid, isSigned, makeImmutable, parseDOMElement, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersion, sign, toXMLString, toXMLString, validateID, validateIssueInstant, validateVersion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.identity.saml2.protocol.RequestAbstract
getConsent, getDestination, getExtensions, getID, getIssueInstant, getIssuer, getSignature, getVersion, isMutable, isSignatureValid, isSigned, makeImmutable, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersion, sign, toXMLString, toXMLString
-
Methods inherited from interface com.sun.identity.saml2.protocol.SubjectQueryAbstract
getSubject, setSubject
-
-
-
-
Field Detail
-
requestedAuthnContext
protected RequestedAuthnContext requestedAuthnContext
-
sessionIndex
protected String sessionIndex
-
-
Constructor Detail
-
AuthnQueryImpl
public AuthnQueryImpl()
Constructor to createAuthnQueryObject .
-
AuthnQueryImpl
public AuthnQueryImpl(Element element) throws SAML2Exception
Constructor to createAuthnQueryObject.- Parameters:
element- the Document Element Object.- Throws:
SAML2Exception- if error creatingAuthnQueryObject.
-
AuthnQueryImpl
public AuthnQueryImpl(String xmlString) throws SAML2Exception
Constructor to createAuthnQueryObject.- Parameters:
xmlString- the XML String.- Throws:
SAML2Exception- if error creatingAuthnQueryObject.
-
-
Method Detail
-
getRequestedAuthnContext
public RequestedAuthnContext getRequestedAuthnContext()
Returns theRequestedAuthnContextobject.- Specified by:
getRequestedAuthnContextin interfaceAuthnQuery- Returns:
- the
RequestedAuthnContextobject. - See Also:
setRequestedAuthnContext(RequestedAuthnContext)
-
setRequestedAuthnContext
public void setRequestedAuthnContext(RequestedAuthnContext requestedAuthnContext) throws SAML2Exception
Sets theRequestedAuthnContextobject.- Specified by:
setRequestedAuthnContextin interfaceAuthnQuery- Parameters:
requestedAuthnContext- the newRequestedAuthnContextobject.- Throws:
SAML2Exception- if the object is immutable.- See Also:
getRequestedAuthnContext()
-
getSessionIndex
public String getSessionIndex()
Returns the value of theSessionIndexattribute.- Specified by:
getSessionIndexin interfaceAuthnQuery- Returns:
- value of
SessionIndexattribute. - See Also:
setSessionIndex(String)
-
setSessionIndex
public void setSessionIndex(String sessionIndex) throws SAML2Exception
Sets the value ofSessionIndexattribute.- Specified by:
setSessionIndexin interfaceAuthnQuery- Parameters:
sessionIndex- new value of theSessionIndexattribute.- Throws:
SAML2Exception- if the object is immutable.- See Also:
getSessionIndex()
-
getXMLString
protected void getXMLString(Set namespaces, StringBuffer attrs, StringBuffer childElements, boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
- Overrides:
getXMLStringin classSubjectQueryAbstractImpl- Throws:
SAML2Exception
-
parseDOMAttributes
protected void parseDOMAttributes(Element element) throws SAML2Exception
Parses attributes of the Docuemnt Element for this object.- Overrides:
parseDOMAttributesin classSubjectQueryAbstractImpl- Parameters:
element- the Document Element of this object.- Throws:
SAML2Exception- if error parsing the Document Element.
-
parseDOMChileElements
protected void parseDOMChileElements(ListIterator iter) throws SAML2Exception
Parses child elements of the Docuemnt Element for this object.- Overrides:
parseDOMChileElementsin classSubjectQueryAbstractImpl- Parameters:
iter- the child elements iterator.- Throws:
SAML2Exception- if error parsing the Document Element.
-
-