Package com.sun.identity.saml2.protocol
Interface RequestAbstract
- All Superinterfaces:
XmlSerializable
- All Known Subinterfaces:
ArtifactResolve
,AssertionIDRequest
,AttributeQuery
,AuthnQuery
,AuthnRequest
,LogoutRequest
,ManageNameIDRequest
,NameIDMappingRequest
,SubjectQueryAbstract
,XACMLAuthzDecisionQuery
- All Known Implementing Classes:
com.sun.identity.saml2.protocol.impl.RequestAbstractImpl
,XACMLAuthzDecisionQueryImpl
This interface defines methods for setting and retrieving attributes and
elements associated with a SAML request message used in SAML protocols.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theConsent
attribute.Returns the value of theDestination
attribute.Returns theExtensions
Object.getID()
Returns the value of theID
attribute.Returns the value ofIssueInstant
attribute.Returns theIssuer
Object.Returns theSignature
Object as a string.Returns the value of theVersion
attribute.boolean
Returns true if object is mutable.boolean
isSignatureValid
(Set<X509Certificate> verificationCerts) Return whether the signature is valid or not.boolean
isSigned()
Returns true if message is signed.void
Makes this object immutable.void
setConsent
(String consent) Sets the value of theConsent
attribute.void
setDestination
(String destinationURI) Sets the value of theDestination
attribute.void
setExtensions
(Extensions extensions) Sets theExtensions
Object.void
Sets the value of theID
attribute.void
setIssueInstant
(Date dateTime) Sets the value ofIssueInstant
attribute.void
Sets theIssuer
object.void
setVersion
(String version) Sets the value of theVersion
attribute.void
sign
(org.forgerock.openam.saml2.crypto.signing.SigningConfig signingConfig) Signs the Request.Methods inherited from interface com.sun.identity.saml2.common.XmlSerializable
toDocumentFragment, toXMLString, toXMLString
-
Method Details
-
setIssuer
Sets theIssuer
object.- Parameters:
nameID
- the newIssuer
object.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getIssuer
Issuer getIssuer()Returns theIssuer
Object.- Returns:
- the
Issuer
object. - See Also:
-
getSignature
String getSignature()Returns theSignature
Object as a string.- Returns:
- the
Signature
object as a string.
-
sign
void sign(org.forgerock.openam.saml2.crypto.signing.SigningConfig signingConfig) throws com.sun.identity.saml2.common.SAML2Exception Signs the Request.- Parameters:
signingConfig
- The signing configuration.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if it could not sign the Request.
-
setExtensions
Sets theExtensions
Object.- Parameters:
extensions
- theExtensions
object.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getExtensions
Extensions getExtensions()Returns theExtensions
Object.- Returns:
- the
Extensions
object. - See Also:
-
setID
Sets the value of theID
attribute.- Parameters:
id
- the new value ofID
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getID
String getID()Returns the value of theID
attribute.- Returns:
- the value of
ID
attribute. - See Also:
-
setVersion
Sets the value of theVersion
attribute.- Parameters:
version
- the value ofVersion
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getVersion
String getVersion()Returns the value of theVersion
attribute.- Returns:
- value of
Version
attribute. - See Also:
-
setIssueInstant
Sets the value ofIssueInstant
attribute.- Parameters:
dateTime
- new value of theIssueInstant
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getIssueInstant
Date getIssueInstant()Returns the value ofIssueInstant
attribute.- Returns:
- value of the
IssueInstant
attribute. - See Also:
-
setDestination
Sets the value of theDestination
attribute.- Parameters:
destinationURI
- new value ofDestination
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getDestination
String getDestination()Returns the value of theDestination
attribute.- Returns:
- the value of
Destination
attribute. - See Also:
-
setConsent
Sets the value of theConsent
attribute.- Parameters:
consent
- new value ofConsent
attribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the object is immutable.- See Also:
-
getConsent
String getConsent()Returns the value of theConsent
attribute.- Returns:
- value of
Consent
attribute. - See Also:
-
isSigned
boolean isSigned()Returns true if message is signed.- Returns:
- true if message is signed.
-
isSignatureValid
boolean isSignatureValid(Set<X509Certificate> verificationCerts) throws com.sun.identity.saml2.common.SAML2Exception Return whether the signature is valid or not.- Parameters:
verificationCerts
- Certificates containing the public keys which may be used for signature verification; This certificate may also may be used to check against the certificate included in the signature.- Returns:
- true if the signature is valid; false otherwise.
- Throws:
com.sun.identity.saml2.common.SAML2Exception
- if the signature could not be verified
-
makeImmutable
void makeImmutable()Makes this object immutable. -
isMutable
boolean isMutable()Returns true if object is mutable.- Returns:
- true if object is mutable.
-