Package com.sun.identity.saml2.protocol
Interface AuthnRequest
- All Superinterfaces:
RequestAbstract
,XmlSerializable
The
AuthnRequest
interface defines methods for properties
required by an authentication request.-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theAssertionConsumerServiceIndex
attribute.Returns the value of theAssertionConsumerServiceURL
attribute.Returns the value of theAttributeConsumingServiceIndex
attribute.Returns theConditions
object.Returns theNameIDPolicy
object.Returns the value of theProtocolBinding
attribute.Returns theProviderName
attribute value.Returns theRequestedAuthnContext
object.Returns theScoping
object.Returns theSubject
object.Returns value ofisForceAuthn
attribute.Returns the value of theisPassive
attribute.void
Sets the value of theAssertionConsumerServiceIndex
attribute.void
Sets the value of theAssertionConsumerServiceURL
attribute.void
Sets the value of theAttributeConsumingServiceIndex
attribute.void
setConditions
(Conditions conditions) Sets theConditions
object.void
setForceAuthn
(Boolean value) Sets the value of theForceAuthn
attribute.void
setIsPassive
(Boolean value) Sets the value of theIsPassive
attribute.void
setNameIDPolicy
(NameIDPolicy nameIDPolicy) Sets theNameIDPolicy
object.void
setProtocolBinding
(String protocolBinding) Sets the value of theProtocolBinding
attribute.void
setProviderName
(String providerName) Sets theProviderName
attribute value.void
setRequestedAuthnContext
(RequestedAuthnContext reqAuthnContext) Sets theRequestedAuthnContext
.void
setScoping
(Scoping scoping) Sets theScoping
object.void
setSubject
(Subject subject) Sets theSubject
object.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
Methods inherited from interface com.sun.identity.saml2.common.XmlSerializable
toDocumentFragment, toXMLString, toXMLString
-
Method Details
-
getSubject
Subject getSubject()Returns theSubject
object.- Returns:
- the
Subject
object. - See Also:
-
setSubject
Sets theSubject
object.- Parameters:
subject
- the newSubject
object.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getNameIDPolicy
NameIDPolicy getNameIDPolicy()Returns theNameIDPolicy
object.- Returns:
- the
NameIDPolicy
object. - See Also:
-
setNameIDPolicy
Sets theNameIDPolicy
object.- Parameters:
nameIDPolicy
- the newNameIDPolicy
object.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getConditions
Conditions getConditions()Returns theConditions
object.- Returns:
- the
Conditions
object. - See Also:
-
setConditions
Sets theConditions
object.- Parameters:
conditions
- the newConditions
object.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getRequestedAuthnContext
RequestedAuthnContext getRequestedAuthnContext()Returns theRequestedAuthnContext
object.- Returns:
- the
RequestAuthnContext
object. - See Also:
-
setRequestedAuthnContext
void setRequestedAuthnContext(RequestedAuthnContext reqAuthnContext) throws com.sun.identity.saml2.common.SAML2Exception Sets theRequestedAuthnContext
.- Parameters:
reqAuthnContext
- the newRequestedAuthnContext
object.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
setScoping
Sets theScoping
object.- Parameters:
scoping
- the newScoping
Object.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getScoping
Scoping getScoping()Returns theScoping
object.- Returns:
- the
Scoping
object. - See Also:
-
isForceAuthn
Boolean isForceAuthn()Returns value ofisForceAuthn
attribute.- Returns:
- value of
isForceAuthn
attribute, or null if the attribute is not present.
-
setForceAuthn
Sets the value of theForceAuthn
attribute.- Parameters:
value
- the value ofForceAuthn
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.
-
isPassive
Boolean isPassive()Returns the value of theisPassive
attribute.- Returns:
- value of
isPassive
attribute, or null if the attribute is not present.
-
setIsPassive
Sets the value of theIsPassive
attribute.- Parameters:
value
- Value ofIsPassive
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.
-
setProtocolBinding
Sets the value of theProtocolBinding
attribute.- Parameters:
protocolBinding
- value of theProtocolBinding
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getProtocolBinding
String getProtocolBinding()Returns the value of theProtocolBinding
attribute.- Returns:
- the value of
ProtocolBinding
attribute. - See Also:
-
getAssertionConsumerServiceURL
String getAssertionConsumerServiceURL()Returns the value of theAssertionConsumerServiceURL
attribute.- Returns:
- the value of
AssertionConsumerServiceURL
attribute. - See Also:
-
setAssertionConsumerServiceURL
Sets the value of theAssertionConsumerServiceURL
attribute.- Parameters:
url
- the value ofAssertionConsumerServiceURL
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getAssertionConsumerServiceIndex
Integer getAssertionConsumerServiceIndex()Returns the value of theAssertionConsumerServiceIndex
attribute.- Returns:
- value of the
AssertionConsumerServiceIndex
attribute. - See Also:
-
setAssertionConsumerServiceIndex
void setAssertionConsumerServiceIndex(Integer index) throws com.sun.identity.saml2.common.SAML2Exception Sets the value of theAssertionConsumerServiceIndex
attribute.- Parameters:
index
- value of theAssertionConsumerServiceIndex
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getAttributeConsumingServiceIndex
Integer getAttributeConsumingServiceIndex()Returns the value of theAttributeConsumingServiceIndex
attribute.- Returns:
- value of the
AttributeConsumingServiceIndex
attribute. - See Also:
-
setAttributeConsumingServiceIndex
void setAttributeConsumingServiceIndex(Integer index) throws com.sun.identity.saml2.common.SAML2Exception Sets the value of theAttributeConsumingServiceIndex
attribute.- Parameters:
index
- value of theAttributeConsumingServiceIndex
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
setProviderName
Sets theProviderName
attribute value.- Parameters:
providerName
- value of theProviderName
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getProviderName
String getProviderName()Returns theProviderName
attribute value.- Returns:
- value of the
ProviderName
attribute value. - See Also:
-