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 Integer
AssertionConsumerServiceIndex attribute.private String
AssertionConsumerServiceURL attribute.private Integer
AttributeConsumingServiceIndex attribute.private Conditions
Conditions child element.private XSBooleanValue
ForeceAuthn attribute.private XSBooleanValue
IsPassive attribute.private NameIDPolicy
NameIDPolicy child element.private String
ProtocolBinding attribute.private String
ProviderName attribute.private RequestedAuthnContext
RequestedAuthnContext child element.private Scoping
Scoping child element.private Subject
Subject 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_NAME
Fields 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
ConstructorsModifierConstructorDescriptionprotected
AuthnRequestImpl
(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 theResponse
message.Gets theConditions
of the request.Gets theNameIDPolicy
of 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 theRequestedAuthnContext
of the request.Gets theScoping
of the request.Gets theSubject
of 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.void
setAssertionConsumerServiceIndex
(Integer newAssertionConsumerServiceIndex) Sets the index of the particular Assertion Consumer Service to which the response to this request should be delivered.void
setAssertionConsumerServiceURL
(String newAssertionConsumerServiceURL) Sets the URL of the particular Assertion Consumer Service to which the response to this request should be delivered.void
setAttributeConsumingServiceIndex
(Integer newAttributeConsumingServiceIndex) Sets the index of the Attribute Consuming Service which describes the SAML attributes the requester desires or requires to be supplied in theResponse
message.void
setConditions
(Conditions newConditions) Sets theConditions
of the request.void
setForceAuthn
(Boolean newForceAuth) Sets whether the IdP should force the user to reauthenticate.void
setForceAuthn
(XSBooleanValue newForceAuthn) Sets whether the IdP should force the user to reauthenticate.void
setIsPassive
(Boolean newIsPassive) Sets whether the IdP should refrain from interacting with the user during the authentication process.void
setIsPassive
(XSBooleanValue newIsPassive) Sets whether the IdP should refrain from interacting with the user during the authentication process.void
setNameIDPolicy
(NameIDPolicy newNameIDPolicy) Sets theNameIDPolicy
of the request.void
setProtocolBinding
(String newProtocolBinding) Sets the protocol binding URI for the request.void
setProviderName
(String newProviderName) Sets the human-readable name of the requester for use by the presenter's user agent or the identity provider.void
setRequestedAuthnContext
(RequestedAuthnContext newRequestedAuthnContext) Sets theRequestedAuthnContext
of the request.void
setScoping
(Scoping newScoping) Sets theScoping
of the request.void
setSubject
(Subject newSubject) Sets theSubject
of 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, setVersion
Methods inherited from class org.opensaml.saml.common.AbstractSignableSAMLObject
equals, hashCode, setSignature
Methods inherited from class org.opensaml.xmlsec.signature.AbstractSignableXMLObject
getSignature, isSigned
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, 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, setSchemaType
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensaml.saml.saml2.core.RequestAbstractType
getConsent, getDestination, getExtensions, getID, getIssueInstant, getIssuer, getVersion, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersion
Methods inherited from interface org.opensaml.saml.common.SignableSAMLObject
getSignatureReferenceID
Methods inherited from interface org.opensaml.xmlsec.signature.SignableXMLObject
getSignature, isSigned, setSignature
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, 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
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:
isForceAuthn
in interfaceAuthnRequest
- Returns:
- whether the IdP should force the user to reauthenticate
-
isForceAuthnXSBoolean
Gets whether the IdP should force the user to reauthenticate.- Specified by:
isForceAuthnXSBoolean
in 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:
setForceAuthn
in 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:
setForceAuthn
in 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:
isPassive
in 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:
isPassiveXSBoolean
in 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:
setIsPassive
in 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:
setIsPassive
in 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:
getProtocolBinding
in interfaceAuthnRequest
- Returns:
- the value of the ProtocolBinding attribute
-
setProtocolBinding
Sets the protocol binding URI for the request.- Specified by:
setProtocolBinding
in 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:
getAssertionConsumerServiceIndex
in 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:
setAssertionConsumerServiceIndex
in 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:
getAssertionConsumerServiceURL
in 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:
setAssertionConsumerServiceURL
in 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 theResponse
message.- Specified by:
getAttributeConsumingServiceIndex
in 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 theResponse
message.- Specified by:
setAttributeConsumingServiceIndex
in 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:
getProviderName
in 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:
setProviderName
in interfaceAuthnRequest
- Parameters:
newProviderName
- the new value of the ProviderName attribute
-
getSubject
Gets theSubject
of the request.- Specified by:
getSubject
in interfaceAuthnRequest
- Returns:
- the Subject of the request
-
setSubject
Sets theSubject
of the request.- Specified by:
setSubject
in interfaceAuthnRequest
- Parameters:
newSubject
- the new value of the Subject of the request
-
getNameIDPolicy
Gets theNameIDPolicy
of the request.- Specified by:
getNameIDPolicy
in interfaceAuthnRequest
- Returns:
- the NameIDPolicy of the request
-
setNameIDPolicy
Sets theNameIDPolicy
of the request.- Specified by:
setNameIDPolicy
in interfaceAuthnRequest
- Parameters:
newNameIDPolicy
- the new value of the NameIDPolicy of the request
-
getConditions
Gets theConditions
of the request.- Specified by:
getConditions
in interfaceAuthnRequest
- Returns:
- the Conditions of the request
-
setConditions
Sets theConditions
of the request.- Specified by:
setConditions
in interfaceAuthnRequest
- Parameters:
newConditions
- the new value of the Conditions of the request
-
getRequestedAuthnContext
Gets theRequestedAuthnContext
of the request.- Specified by:
getRequestedAuthnContext
in interfaceAuthnRequest
- Returns:
- the RequestedAuthnContext of the request
-
setRequestedAuthnContext
Sets theRequestedAuthnContext
of the request.- Specified by:
setRequestedAuthnContext
in interfaceAuthnRequest
- Parameters:
newRequestedAuthnContext
- the new value of the RequestedAuthnContext of the request
-
getScoping
Gets theScoping
of the request.- Specified by:
getScoping
in interfaceAuthnRequest
- Returns:
- the Scoping of the request
-
setScoping
Sets theScoping
of the request.- Specified by:
setScoping
in 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:
getOrderedChildren
in interfaceXMLObject
- Overrides:
getOrderedChildren
in classRequestAbstractTypeImpl
- Returns:
- ordered list of child elements
-