Class SignatureMessageExtension
java.lang.Object
se.swedenconnect.spring.saml.idp.extensions.SignatureMessageExtension
- All Implemented Interfaces:
Serializable
A representation of the
SignMessage
extension as specified in section 3.1.2 of DSS
Extension for Federated Central Signing Services.
The {code SignatureMessageExtension} holds the decrypted version of a SignMessage
object.
- Author:
- Martin Lindström
- See Also:
-
Constructor Summary
ConstructorDescriptionSignatureMessageExtension
(String message, se.swedenconnect.opensaml.sweid.saml2.signservice.dss.SignMessageMimeTypeEnum mimeType, Boolean mustShow) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the (base64 encoded) sign message.se.swedenconnect.opensaml.sweid.saml2.signservice.dss.SignMessageMimeTypeEnum
Gets the MIME type of the sign message.Gets the processed message.boolean
Whether the caller has indicated that the sign message MUST be displayed for the user.void
setProcessedMessage
(String processedMessage) Assigns the processed message.
-
Constructor Details
-
SignatureMessageExtension
public SignatureMessageExtension(String message, se.swedenconnect.opensaml.sweid.saml2.signservice.dss.SignMessageMimeTypeEnum mimeType, Boolean mustShow) Constructor.- Parameters:
message
- the unencrypted sign message (in base64)mimeType
- the message MIME type - ifnull
,SignMessageMimeTypeEnum.TEXT
is assumedmustShow
- whether the caller has indicated that the sign message MUST be displayed for the user
-
-
Method Details
-
getMessage
Gets the (base64 encoded) sign message.- Returns:
- the sign message
-
getMimeType
public se.swedenconnect.opensaml.sweid.saml2.signservice.dss.SignMessageMimeTypeEnum getMimeType()Gets the MIME type of the sign message. Defaults toSignMessageMimeTypeEnum.TEXT
.- Returns:
- the sign message MIME type
-
isMustShow
public boolean isMustShow()Whether the caller has indicated that the sign message MUST be displayed for the user.- Returns:
true
if the message must be displayed for the user andfalse
otherwise
-
getProcessedMessage
Gets the processed message. If aSignatureMessagePreprocessor
is installed, theprocessedMessage
will contain the result from this processing, i.e., a string that is prepared for display (on a web page, on a device, ...).- Returns:
- a message prepared for display
-
setProcessedMessage
Assigns the processed message. If aSignatureMessagePreprocessor
is installed, theprocessedMessage
will contain the result from this processing, i.e., a string that is prepared for display (on a web page, on a device, ...).- Parameters:
processedMessage
- a message prepared for display
-