Class AuthnRequestImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.xmlsec.signature.AbstractSignableXMLObject
org.opensaml.saml.common.AbstractSignableSAMLObject
org.opensaml.saml.saml2.core.impl.RequestAbstractTypeImpl
org.opensaml.saml.saml2.core.impl.AuthnRequestImpl
- All Implemented Interfaces:
XMLObject,SAMLObject,SignableSAMLObject,AuthnRequest,RequestAbstractType,SignableXMLObject
A concrete implementation of
AuthnRequest.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IntegerAssertionConsumerServiceIndex attribute.private StringAssertionConsumerServiceURL attribute.private IntegerAttributeConsumingServiceIndex attribute.private ConditionsConditions child element.private XSBooleanValueForeceAuthn attribute.private XSBooleanValueIsPassive attribute.private NameIDPolicyNameIDPolicy child element.private StringProtocolBinding attribute.private StringProviderName attribute.private RequestedAuthnContextRequestedAuthnContext child element.private ScopingScoping child element.private SubjectSubject child element.Fields inherited from interface org.opensaml.saml.saml2.core.AuthnRequest
ASSERTION_CONSUMER_SERVICE_INDEX_ATTRIB_NAME, ASSERTION_CONSUMER_SERVICE_URL_ATTRIB_NAME, ATTRIBUTE_CONSUMING_SERVICE_INDEX_ATTRIB_NAME, DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, FORCE_AUTHN_ATTRIB_NAME, IS_PASSIVE_ATTRIB_NAME, PROTOCOL_BINDING_ATTRIB_NAME, PROVIDER_NAME_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAMEFields inherited from interface org.opensaml.saml.saml2.core.RequestAbstractType
CONSENT_ATTRIB_NAME, DESTINATION_ATTRIB_NAME, EXPLICIT_CONSENT, ID_ATTRIB_NAME, IMPLICIT_CONSENT, INAPPLICABLE_CONSENT, ISSUE_INSTANT_ATTRIB_NAME, ISSUE_INSTANT_ATTRIB_QNAME, OBTAINED_CONSENT, PRIOR_CONSENT, TYPE_LOCAL_NAME, TYPE_NAME, UNAVAILABLE_CONSENT, UNSPECIFIED_CONSENT, VERSION_ATTRIB_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAuthnRequestImpl(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the index of the particular Assertion Consumer Service to which the response to this request should be delivered.Gets the URL of the particular Assertion Consumer Service to which the response to this request should be delivered.Gets the index of the Attribute Consuming Service which describes the SAML attributes the requester desires or requires to be supplied in theResponsemessage.Gets theConditionsof the request.Gets theNameIDPolicyof the request.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.Gets the protocol binding URI for the request.Gets the human-readable name of the requester for use by the presenter's user agent or the identity provider.Gets theRequestedAuthnContextof the request.Gets theScopingof the request.Gets theSubjectof the request.Gets whether the IdP should force the user to reauthenticate.Gets whether the IdP should force the user to reauthenticate.Gets whether the IdP should refrain from interacting with the user during the authentication process.Gets whether the IdP should refrain from interacting with the user during the authentication process.voidsetAssertionConsumerServiceIndex(Integer newAssertionConsumerServiceIndex) Sets the index of the particular Assertion Consumer Service to which the response to this request should be delivered.voidsetAssertionConsumerServiceURL(String newAssertionConsumerServiceURL) Sets the URL of the particular Assertion Consumer Service to which the response to this request should be delivered.voidsetAttributeConsumingServiceIndex(Integer newAttributeConsumingServiceIndex) Sets the index of the Attribute Consuming Service which describes the SAML attributes the requester desires or requires to be supplied in theResponsemessage.voidsetConditions(Conditions newConditions) Sets theConditionsof the request.voidsetForceAuthn(Boolean newForceAuth) Sets whether the IdP should force the user to reauthenticate.voidsetForceAuthn(XSBooleanValue newForceAuthn) Sets whether the IdP should force the user to reauthenticate.voidsetIsPassive(Boolean newIsPassive) Sets whether the IdP should refrain from interacting with the user during the authentication process.voidsetIsPassive(XSBooleanValue newIsPassive) Sets whether the IdP should refrain from interacting with the user during the authentication process.voidsetNameIDPolicy(NameIDPolicy newNameIDPolicy) Sets theNameIDPolicyof the request.voidsetProtocolBinding(String newProtocolBinding) Sets the protocol binding URI for the request.voidsetProviderName(String newProviderName) Sets the human-readable name of the requester for use by the presenter's user agent or the identity provider.voidsetRequestedAuthnContext(RequestedAuthnContext newRequestedAuthnContext) Sets theRequestedAuthnContextof the request.voidsetScoping(Scoping newScoping) Sets theScopingof the request.voidsetSubject(Subject newSubject) Sets theSubjectof the request.Methods inherited from class org.opensaml.saml.saml2.core.impl.RequestAbstractTypeImpl
getConsent, getDestination, getExtensions, getID, getIssueInstant, getIssuer, getSignatureReferenceID, getVersion, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersionMethods inherited from class org.opensaml.saml.common.AbstractSignableSAMLObject
equals, hashCode, setSignatureMethods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject
getSignature, isSignedMethods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.saml.saml2.core.RequestAbstractType
getConsent, getDestination, getExtensions, getID, getIssueInstant, getIssuer, getVersion, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersionMethods inherited from interface org.opensaml.saml.common.SignableSAMLObject
getSignatureReferenceIDMethods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject
getSignature, isSigned, setSignatureMethods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
subject
Subject child element. -
nameIDPolicy
NameIDPolicy child element. -
conditions
Conditions child element. -
requestedAuthnContext
RequestedAuthnContext child element. -
scoping
Scoping child element. -
forceAuthn
ForeceAuthn attribute. -
isPassive
IsPassive attribute. -
protocolBinding
ProtocolBinding attribute. -
assertionConsumerServiceIndex
AssertionConsumerServiceIndex attribute. -
assertionConsumerServiceURL
AssertionConsumerServiceURL attribute. -
attributeConsumingServiceIndex
AttributeConsumingServiceIndex attribute. -
providerName
ProviderName attribute.
-
-
Constructor Details
-
AuthnRequestImpl
protected AuthnRequestImpl(@Nullable String namespaceURI, @Nonnull String elementLocalName, @Nullable String namespacePrefix) Constructor.- Parameters:
namespaceURI- the namespace the element is inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Details
-
isForceAuthn
Gets whether the IdP should force the user to reauthenticate.- Specified by:
isForceAuthnin interfaceAuthnRequest- Returns:
- whether the IdP should force the user to reauthenticate
-
isForceAuthnXSBoolean
Gets whether the IdP should force the user to reauthenticate.- Specified by:
isForceAuthnXSBooleanin interfaceAuthnRequest- Returns:
- whether the IdP should force the user to reauthenticate
-
setForceAuthn
Sets whether the IdP should force the user to reauthenticate. Boolean values will be marshalled to either "true" or "false".- Specified by:
setForceAuthnin interfaceAuthnRequest- Parameters:
newForceAuth- whether the IdP should force the user to reauthenticate
-
setForceAuthn
Sets whether the IdP should force the user to reauthenticate.- Specified by:
setForceAuthnin interfaceAuthnRequest- Parameters:
newForceAuthn- whether the IdP should force the user to reauthenticate
-
isPassive
Gets whether the IdP should refrain from interacting with the user during the authentication process.- Specified by:
isPassivein interfaceAuthnRequest- Returns:
- whether the IdP should refrain from interacting with the user during the authentication process
-
isPassiveXSBoolean
Gets whether the IdP should refrain from interacting with the user during the authentication process.- Specified by:
isPassiveXSBooleanin interfaceAuthnRequest- Returns:
- whether the IdP should refrain from interacting with the user during the authentication process
-
setIsPassive
Sets whether the IdP should refrain from interacting with the user during the authentication process. Boolean values will be marshalled to either "true" or "false".- Specified by:
setIsPassivein interfaceAuthnRequest- Parameters:
newIsPassive- whether the IdP should refrain from interacting with the user during the authentication process
-
setIsPassive
Sets whether the IdP should refrain from interacting with the user during the authentication process.- Specified by:
setIsPassivein interfaceAuthnRequest- Parameters:
newIsPassive- whether the IdP should refrain from interacting with the user during the authentication process
-
getProtocolBinding
Gets the protocol binding URI for the request.- Specified by:
getProtocolBindingin interfaceAuthnRequest- Returns:
- the value of the ProtocolBinding attribute
-
setProtocolBinding
Sets the protocol binding URI for the request.- Specified by:
setProtocolBindingin interfaceAuthnRequest- Parameters:
newProtocolBinding- the new value of the ProtocolBinding attribute
-
getAssertionConsumerServiceIndex
Gets the index of the particular Assertion Consumer Service to which the response to this request should be delivered.- Specified by:
getAssertionConsumerServiceIndexin interfaceAuthnRequest- Returns:
- the value of the AssertionConsumerServiceIndex attribute
-
setAssertionConsumerServiceIndex
Sets the index of the particular Assertion Consumer Service to which the response to this request should be delivered.- Specified by:
setAssertionConsumerServiceIndexin interfaceAuthnRequest- Parameters:
newAssertionConsumerServiceIndex- the new value of the AssertionConsumerServiceIndex attribute
-
getAssertionConsumerServiceURL
Gets the URL of the particular Assertion Consumer Service to which the response to this request should be delivered.- Specified by:
getAssertionConsumerServiceURLin interfaceAuthnRequest- Returns:
- the value of the AssertionConsumerServiceURL attribute
-
setAssertionConsumerServiceURL
Sets the URL of the particular Assertion Consumer Service to which the response to this request should be delivered.- Specified by:
setAssertionConsumerServiceURLin interfaceAuthnRequest- Parameters:
newAssertionConsumerServiceURL- the new value of the AssertionConsumerServiceURL attribute
-
getAttributeConsumingServiceIndex
Gets the index of the Attribute Consuming Service which describes the SAML attributes the requester desires or requires to be supplied in theResponsemessage.- Specified by:
getAttributeConsumingServiceIndexin interfaceAuthnRequest- Returns:
- the value of the AssertionConsumerServiceIndex attribute
-
setAttributeConsumingServiceIndex
Sets the index of the Attribute Consuming Service which describes the SAML attributes the requester desires or requires to be supplied in theResponsemessage.- Specified by:
setAttributeConsumingServiceIndexin interfaceAuthnRequest- Parameters:
newAttributeConsumingServiceIndex- the new value of the AttributeConsumingServiceIndex attribute
-
getProviderName
Gets the human-readable name of the requester for use by the presenter's user agent or the identity provider.- Specified by:
getProviderNamein interfaceAuthnRequest- Returns:
- the value of the ProviderName attribute
-
setProviderName
Sets the human-readable name of the requester for use by the presenter's user agent or the identity provider.- Specified by:
setProviderNamein interfaceAuthnRequest- Parameters:
newProviderName- the new value of the ProviderName attribute
-
getSubject
Gets theSubjectof the request.- Specified by:
getSubjectin interfaceAuthnRequest- Returns:
- the Subject of the request
-
setSubject
Sets theSubjectof the request.- Specified by:
setSubjectin interfaceAuthnRequest- Parameters:
newSubject- the new value of the Subject of the request
-
getNameIDPolicy
Gets theNameIDPolicyof the request.- Specified by:
getNameIDPolicyin interfaceAuthnRequest- Returns:
- the NameIDPolicy of the request
-
setNameIDPolicy
Sets theNameIDPolicyof the request.- Specified by:
setNameIDPolicyin interfaceAuthnRequest- Parameters:
newNameIDPolicy- the new value of the NameIDPolicy of the request
-
getConditions
Gets theConditionsof the request.- Specified by:
getConditionsin interfaceAuthnRequest- Returns:
- the Conditions of the request
-
setConditions
Sets theConditionsof the request.- Specified by:
setConditionsin interfaceAuthnRequest- Parameters:
newConditions- the new value of the Conditions of the request
-
getRequestedAuthnContext
Gets theRequestedAuthnContextof the request.- Specified by:
getRequestedAuthnContextin interfaceAuthnRequest- Returns:
- the RequestedAuthnContext of the request
-
setRequestedAuthnContext
Sets theRequestedAuthnContextof the request.- Specified by:
setRequestedAuthnContextin interfaceAuthnRequest- Parameters:
newRequestedAuthnContext- the new value of the RequestedAuthnContext of the request
-
getScoping
Gets theScopingof the request.- Specified by:
getScopingin interfaceAuthnRequest- Returns:
- the Scoping of the request
-
setScoping
Sets theScopingof the request.- Specified by:
setScopingin interfaceAuthnRequest- Parameters:
newScoping- the new value of the Scoping of the request
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildrenin interfaceXMLObject- Overrides:
getOrderedChildrenin classRequestAbstractTypeImpl- Returns:
- ordered list of child elements
-