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
public class AuthnRequestImpl extends RequestAbstractTypeImpl implements AuthnRequest
A concrete implementation ofAuthnRequest.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerassertionConsumerServiceIndexAssertionConsumerServiceIndex attribute.private StringassertionConsumerServiceURLAssertionConsumerServiceURL attribute.private IntegerattributeConsumingServiceIndexAttributeConsumingServiceIndex attribute.private ConditionsconditionsConditions child element.private XSBooleanValueforceAuthnForeceAuthn attribute.private XSBooleanValueisPassiveIsPassive attribute.private NameIDPolicynameIDPolicyNameIDPolicy child element.private StringprotocolBindingProtocolBinding attribute.private StringproviderNameProviderName attribute.private RequestedAuthnContextrequestedAuthnContextRequestedAuthnContext child element.private ScopingscopingScoping child element.private SubjectsubjectSubject 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
Constructors Modifier Constructor Description protectedAuthnRequestImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetAssertionConsumerServiceIndex()Gets the index of the particular Assertion Consumer Service to which the response to this request should be delivered.StringgetAssertionConsumerServiceURL()Gets the URL of the particular Assertion Consumer Service to which the response to this request should be delivered.IntegergetAttributeConsumingServiceIndex()Gets the index of the Attribute Consuming Service which describes the SAML attributes the requester desires or requires to be supplied in theResponsemessage.ConditionsgetConditions()Gets theConditionsof the request.NameIDPolicygetNameIDPolicy()Gets theNameIDPolicyof the request.List<XMLObject>getOrderedChildren()Gets an unmodifiable list of child elements in the order that they will appear in the DOM.StringgetProtocolBinding()Gets the protocol binding URI for the request.StringgetProviderName()Gets the human-readable name of the requester for use by the presenter's user agent or the identity provider.RequestedAuthnContextgetRequestedAuthnContext()Gets theRequestedAuthnContextof the request.ScopinggetScoping()Gets theScopingof the request.SubjectgetSubject()Gets theSubjectof the request.BooleanisForceAuthn()Gets whether the IdP should force the user to reauthenticate.XSBooleanValueisForceAuthnXSBoolean()Gets whether the IdP should force the user to reauthenticate.BooleanisPassive()Gets whether the IdP should refrain from interacting with the user during the authentication process.XSBooleanValueisPassiveXSBoolean()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, 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 Detail
-
subject
private Subject subject
Subject child element.
-
nameIDPolicy
private NameIDPolicy nameIDPolicy
NameIDPolicy child element.
-
conditions
private Conditions conditions
Conditions child element.
-
requestedAuthnContext
private RequestedAuthnContext requestedAuthnContext
RequestedAuthnContext child element.
-
scoping
private Scoping scoping
Scoping child element.
-
forceAuthn
private XSBooleanValue forceAuthn
ForeceAuthn attribute.
-
isPassive
private XSBooleanValue isPassive
IsPassive attribute.
-
protocolBinding
private String protocolBinding
ProtocolBinding attribute.
-
assertionConsumerServiceIndex
private Integer assertionConsumerServiceIndex
AssertionConsumerServiceIndex attribute.
-
assertionConsumerServiceURL
private String assertionConsumerServiceURL
AssertionConsumerServiceURL attribute.
-
attributeConsumingServiceIndex
private Integer attributeConsumingServiceIndex
AttributeConsumingServiceIndex attribute.
-
providerName
private String providerName
ProviderName attribute.
-
-
Constructor Detail
-
AuthnRequestImpl
protected AuthnRequestImpl(String namespaceURI, String elementLocalName, 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 Detail
-
isForceAuthn
public Boolean 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
public XSBooleanValue 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
public void setForceAuthn(Boolean newForceAuth)
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
public void setForceAuthn(XSBooleanValue newForceAuthn)
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
public Boolean 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
public XSBooleanValue 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
public void setIsPassive(Boolean newIsPassive)
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
public void setIsPassive(XSBooleanValue newIsPassive)
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
public String getProtocolBinding()
Gets the protocol binding URI for the request.- Specified by:
getProtocolBindingin interfaceAuthnRequest- Returns:
- the value of the ProtocolBinding attribute
-
setProtocolBinding
public void setProtocolBinding(String newProtocolBinding)
Sets the protocol binding URI for the request.- Specified by:
setProtocolBindingin interfaceAuthnRequest- Parameters:
newProtocolBinding- the new value of the ProtocolBinding attribute
-
getAssertionConsumerServiceIndex
public Integer 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
public void setAssertionConsumerServiceIndex(Integer newAssertionConsumerServiceIndex)
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
public String 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
public void setAssertionConsumerServiceURL(String newAssertionConsumerServiceURL)
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
public Integer 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
public 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 theResponsemessage.- Specified by:
setAttributeConsumingServiceIndexin interfaceAuthnRequest- Parameters:
newAttributeConsumingServiceIndex- the new value of the AttributeConsumingServiceIndex attribute
-
getProviderName
public String 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
public void setProviderName(String newProviderName)
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
public Subject getSubject()
Gets theSubjectof the request.- Specified by:
getSubjectin interfaceAuthnRequest- Returns:
- the Subject of the request
-
setSubject
public void setSubject(Subject newSubject)
Sets theSubjectof the request.- Specified by:
setSubjectin interfaceAuthnRequest- Parameters:
newSubject- the new value of the Subject of the request
-
getNameIDPolicy
public NameIDPolicy getNameIDPolicy()
Gets theNameIDPolicyof the request.- Specified by:
getNameIDPolicyin interfaceAuthnRequest- Returns:
- the NameIDPolicy of the request
-
setNameIDPolicy
public void setNameIDPolicy(NameIDPolicy newNameIDPolicy)
Sets theNameIDPolicyof the request.- Specified by:
setNameIDPolicyin interfaceAuthnRequest- Parameters:
newNameIDPolicy- the new value of the NameIDPolicy of the request
-
getConditions
public Conditions getConditions()
Gets theConditionsof the request.- Specified by:
getConditionsin interfaceAuthnRequest- Returns:
- the Conditions of the request
-
setConditions
public void setConditions(Conditions newConditions)
Sets theConditionsof the request.- Specified by:
setConditionsin interfaceAuthnRequest- Parameters:
newConditions- the new value of the Conditions of the request
-
getRequestedAuthnContext
public RequestedAuthnContext getRequestedAuthnContext()
Gets theRequestedAuthnContextof the request.- Specified by:
getRequestedAuthnContextin interfaceAuthnRequest- Returns:
- the RequestedAuthnContext of the request
-
setRequestedAuthnContext
public void setRequestedAuthnContext(RequestedAuthnContext newRequestedAuthnContext)
Sets theRequestedAuthnContextof the request.- Specified by:
setRequestedAuthnContextin interfaceAuthnRequest- Parameters:
newRequestedAuthnContext- the new value of the RequestedAuthnContext of the request
-
getScoping
public Scoping getScoping()
Gets theScopingof the request.- Specified by:
getScopingin interfaceAuthnRequest- Returns:
- the Scoping of the request
-
setScoping
public void setScoping(Scoping newScoping)
Sets theScopingof the request.- Specified by:
setScopingin interfaceAuthnRequest- Parameters:
newScoping- the new value of the Scoping of the request
-
getOrderedChildren
public List<XMLObject> 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
-
-