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