public class AuthnRequestImpl extends RequestAbstractImpl implements AuthnRequest
AuthnRequestImpl
implements the
AuthnRequest interface , defines methods for
properties required by a saml request.consent, destinationURI, elementName, extensions, isMutable, isSignatureValid, isSigned, issueInstant, nameID, publicKey, requestId, signatureString, signedXMLString, version
Constructor and Description |
---|
AuthnRequestImpl()
Constructor to create
AuthnRequest Object . |
AuthnRequestImpl(Element element)
Constructor to create
AuthnRequest Object. |
AuthnRequestImpl(String xmlString)
Constructor to create
AuthnRequest Object. |
Modifier and Type | Method and Description |
---|---|
Integer |
getAssertionConsumerServiceIndex()
Returns the value of the
AssertionConsumerServiceIndex
attribute. |
String |
getAssertionConsumerServiceURL()
Returns the value of the
AssertionConsumerServiceURL
attribute. |
Integer |
getAttributeConsumingServiceIndex()
Returns the value of the
AttributeConsumingServiceIndex
attribute. |
Conditions |
getConditions()
Returns the
Conditions object. |
NameIDPolicy |
getNameIDPolicy()
Returns the
NameIDPolicy object. |
String |
getProtocolBinding()
Returns the value of the
ProtocolBinding attribute. |
String |
getProviderName()
Returns the
ProviderName attribute value. |
RequestedAuthnContext |
getRequestedAuthnContext()
Returns the
RequestedAuthnContext object. |
Scoping |
getScoping()
Returns the
Scoping object. |
Subject |
getSubject()
Returns the
Subject object. |
Boolean |
isForceAuthn()
Returns value of
isForceAuthn attribute. |
Boolean |
isPassive()
Returns the value of the
isPassive attribute. |
void |
makeImmutable()
Makes this object immutable.
|
protected void |
parseDOMElement(Element element)
Parses the Docuemnt Element for this object.
|
void |
setAssertionConsumerServiceIndex(Integer index)
Sets the value of the
AssertionConsumerServiceIndex
attribute. |
void |
setAssertionConsumerServiceURL(String url)
Sets the value of the
AssertionConsumerServiceURL
attribute. |
void |
setAttributeConsumingServiceIndex(Integer index)
Sets the value of the
AttributeConsumingServiceIndex
attribute. |
void |
setConditions(Conditions conditions)
Sets the
Conditions object. |
void |
setForceAuthn(Boolean value)
Sets the value of the
ForceAuthn attribute. |
void |
setIsPassive(Boolean value)
Sets the value of the
IsPassive attribute. |
void |
setNameIDPolicy(NameIDPolicy nameIDPolicy)
Sets the
NameIDPolicy object. |
void |
setProtocolBinding(String protocolBinding)
Sets the value of the
ProtocolBinding attribute. |
void |
setProviderName(String providerName)
Sets the
ProviderName attribute value. |
void |
setRequestedAuthnContext(RequestedAuthnContext reqAuthnContext)
Sets the
RequestedAuthnContext . |
void |
setScoping(Scoping scoping)
Sets the
Scoping object. |
void |
setSubject(Subject subject)
Sets the
Subject object. |
String |
toXMLString()
Returns a String representation of this Object.
|
String |
toXMLString(boolean includeNSPrefix,
boolean declareNS)
Returns a String representation
|
getAttributesString, getConsent, getDestination, getElements, getExtensions, getID, getIssueInstant, getIssuer, getSignature, getVersion, getXMLString, isMutable, isSignatureValid, isSigned, parseDOMAttributes, parseDOMChileElements, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersion, sign, validateData, validateID, validateIssueInstant, validateVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConsent, getDestination, getExtensions, getID, getIssueInstant, getIssuer, getSignature, getVersion, isMutable, isSignatureValid, isSigned, setConsent, setDestination, setExtensions, setID, setIssueInstant, setIssuer, setVersion, sign
public AuthnRequestImpl()
AuthnRequest
Object .public AuthnRequestImpl(Element element) throws SAML2Exception
AuthnRequest
Object.element
- the Document Element Object.SAML2Exception
- if error creating AuthnRequest
Object.public AuthnRequestImpl(String xmlString) throws SAML2Exception
AuthnRequest
Object.xmlString
- the XML String.SAML2Exception
- if error creating AuthnRequest
Object.public Subject getSubject()
Subject
object.getSubject
in interface AuthnRequest
Subject
object.setSubject(Subject)
public void setSubject(Subject subject) throws SAML2Exception
Subject
object.setSubject
in interface AuthnRequest
subject
- the new Subject
object.SAML2Exception
- if the object is immutable.getSubject()
public NameIDPolicy getNameIDPolicy()
NameIDPolicy
object.getNameIDPolicy
in interface AuthnRequest
NameIDPolicy
object.setNameIDPolicy(NameIDPolicy)
public void setNameIDPolicy(NameIDPolicy nameIDPolicy) throws SAML2Exception
NameIDPolicy
object.setNameIDPolicy
in interface AuthnRequest
nameIDPolicy
- the new NameIDPolicy
object.SAML2Exception
- if the object is immutable.getNameIDPolicy()
public Conditions getConditions()
Conditions
object.getConditions
in interface AuthnRequest
Conditions
object.setConditions(Conditions)
public void setConditions(Conditions conditions) throws SAML2Exception
Conditions
object.setConditions
in interface AuthnRequest
conditions
- the new Conditions
object.SAML2Exception
- if the object is immutable.getConditions()
public RequestedAuthnContext getRequestedAuthnContext()
RequestedAuthnContext
object.getRequestedAuthnContext
in interface AuthnRequest
RequestAuthnContext
object.setRequestedAuthnContext(RequestedAuthnContext)
public void setRequestedAuthnContext(RequestedAuthnContext reqAuthnContext) throws SAML2Exception
RequestedAuthnContext
.setRequestedAuthnContext
in interface AuthnRequest
reqAuthnContext
- the new RequestedAuthnContext
object.SAML2Exception
- if the object is immutable.getRequestedAuthnContext()
public void setScoping(Scoping scoping) throws SAML2Exception
Scoping
object.setScoping
in interface AuthnRequest
scoping
- the new Scoping
Object.SAML2Exception
- if the object is immutable.getScoping()
public Scoping getScoping()
Scoping
object.getScoping
in interface AuthnRequest
Scoping
object.setScoping(Scoping)
public Boolean isForceAuthn()
isForceAuthn
attribute.isForceAuthn
in interface AuthnRequest
isForceAuthn
attribute.public void setForceAuthn(Boolean value) throws SAML2Exception
ForceAuthn
attribute.setForceAuthn
in interface AuthnRequest
value
- the value of ForceAuthn
attribute.SAML2Exception
- if the object is immutable.public Boolean isPassive()
isPassive
attribute.isPassive
in interface AuthnRequest
isPassive
attribute.public void setIsPassive(Boolean value) throws SAML2Exception
IsPassive
attribute.setIsPassive
in interface AuthnRequest
value
- Value of IsPassive
attribute.SAML2Exception
- if the object is immutable.public void setProtocolBinding(String protocolBinding) throws SAML2Exception
ProtocolBinding
attribute.setProtocolBinding
in interface AuthnRequest
protocolBinding
- value of the ProtocolBinding
attribute.SAML2Exception
- if the object is immutable.getProtocolBinding()
public String getProtocolBinding()
ProtocolBinding
attribute.getProtocolBinding
in interface AuthnRequest
ProtocolBinding
attribute.setProtocolBinding(String)
public String getAssertionConsumerServiceURL()
AssertionConsumerServiceURL
attribute.getAssertionConsumerServiceURL
in interface AuthnRequest
AssertionConsumerServiceURL
attribute.setAssertionConsumerServiceURL(String)
public void setAssertionConsumerServiceURL(String url) throws SAML2Exception
AssertionConsumerServiceURL
attribute.setAssertionConsumerServiceURL
in interface AuthnRequest
url
- the value of AssertionConsumerServiceURL
attribute.SAML2Exception
- if the object is immutable.getAssertionConsumerServiceURL()
public Integer getAssertionConsumerServiceIndex()
AssertionConsumerServiceIndex
attribute.getAssertionConsumerServiceIndex
in interface AuthnRequest
AssertionConsumerServiceIndex
attribute.
setAssertionConsumerServiceIndex(Integer)
public void setAssertionConsumerServiceIndex(Integer index) throws SAML2Exception
AssertionConsumerServiceIndex
attribute.setAssertionConsumerServiceIndex
in interface AuthnRequest
index
- value of the AssertionConsumerServiceIndex
attribute.SAML2Exception
- if the object is immutable.getAssertionConsumerServiceIndex()
public Integer getAttributeConsumingServiceIndex()
AttributeConsumingServiceIndex
attribute.getAttributeConsumingServiceIndex
in interface AuthnRequest
AttributeConsumingServiceIndex
attribute.
setAttributeConsumingServiceIndex(Integer)
public void setAttributeConsumingServiceIndex(Integer index) throws SAML2Exception
AttributeConsumingServiceIndex
attribute.setAttributeConsumingServiceIndex
in interface AuthnRequest
index
- value of the AttributeConsumingServiceIndex
attribute.SAML2Exception
- if the object is immutable.getAttributeConsumingServiceIndex()
public void setProviderName(String providerName) throws SAML2Exception
ProviderName
attribute value.setProviderName
in interface AuthnRequest
providerName
- value of the ProviderName
attribute.SAML2Exception
- if the object is immutable.getProviderName()
public String getProviderName()
ProviderName
attribute value.getProviderName
in interface AuthnRequest
ProviderName
attribute value.setProviderName(String)
public String toXMLString() throws SAML2Exception
toXMLString
in interface RequestAbstract
toXMLString
in class RequestAbstractImpl
SAML2Exception
- if it could not create String objectpublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
toXMLString
in interface RequestAbstract
toXMLString
in class RequestAbstractImpl
includeNSPrefix
- determines whether or not the namespace
qualifier is prepended to the Element when converteddeclareNS
- determines whether or not the namespace is declared
within the Element.SAML2Exception
- ,if it could not create String object.public void makeImmutable()
makeImmutable
in interface RequestAbstract
makeImmutable
in class RequestAbstractImpl
protected void parseDOMElement(Element element) throws SAML2Exception
parseDOMElement
in class RequestAbstractImpl
element
- the Document Element of this object.SAML2Exception
- if error parsing the Document Element.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.