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 theConsentattribute.Returns the value of theDestinationattribute.Returns theExtensionsObject.getID()Returns the value of theIDattribute.Returns the value ofIssueInstantattribute.Returns theIssuerObject.Returns theSignatureObject as a string.Returns the value of theVersionattribute.booleanReturns true if object is mutable.booleanisSignatureValid(Set<X509Certificate> verificationCerts) Return whether the signature is valid or not.booleanisSigned()Returns true if message is signed.voidMakes this object immutable.voidsetConsent(String consent) Sets the value of theConsentattribute.voidsetDestination(String destinationURI) Sets the value of theDestinationattribute.voidsetExtensions(Extensions extensions) Sets theExtensionsObject.voidSets the value of theIDattribute.voidsetIssueInstant(Date dateTime) Sets the value ofIssueInstantattribute.voidSets theIssuerobject.voidsetVersion(String version) Sets the value of theVersionattribute.voidsign(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 theIssuerobject.- Parameters:
nameID- the newIssuerobject.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getIssuer
Issuer getIssuer()Returns theIssuerObject.- Returns:
- the
Issuerobject. - See Also:
-
getSignature
String getSignature()Returns theSignatureObject as a string.- Returns:
- the
Signatureobject 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 theExtensionsObject.- Parameters:
extensions- theExtensionsobject.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getExtensions
Extensions getExtensions()Returns theExtensionsObject.- Returns:
- the
Extensionsobject. - See Also:
-
setID
Sets the value of theIDattribute.- Parameters:
id- the new value ofIDattribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getID
String getID()Returns the value of theIDattribute.- Returns:
- the value of
IDattribute. - See Also:
-
setVersion
Sets the value of theVersionattribute.- Parameters:
version- the value ofVersionattribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getVersion
String getVersion()Returns the value of theVersionattribute.- Returns:
- value of
Versionattribute. - See Also:
-
setIssueInstant
Sets the value ofIssueInstantattribute.- Parameters:
dateTime- new value of theIssueInstantattribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getIssueInstant
Date getIssueInstant()Returns the value ofIssueInstantattribute.- Returns:
- value of the
IssueInstantattribute. - See Also:
-
setDestination
Sets the value of theDestinationattribute.- Parameters:
destinationURI- new value ofDestinationattribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getDestination
String getDestination()Returns the value of theDestinationattribute.- Returns:
- the value of
Destinationattribute. - See Also:
-
setConsent
Sets the value of theConsentattribute.- Parameters:
consent- new value ofConsentattribute.- Throws:
com.sun.identity.saml2.common.SAML2Exception- if the object is immutable.- See Also:
-
getConsent
String getConsent()Returns the value of theConsentattribute.- Returns:
- value of
Consentattribute. - 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.
-