Class SignMessageBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<SignMessage>
se.swedenconnect.opensaml.sweid.saml2.signservice.build.SignMessageBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<SignMessage>
Creates a
SignMessage
instance using the builder patterns.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SignMessageBuilder
builder()
Utility method that creates a builder.displayEntity
(String displayEntity) Assigns the entityID of the entity responsible for displaying the sign message to the signer.protected Class
<SignMessage> Assigns the message to include.mimeType
(SignMessageMimeTypeEnum mimeType) Assigns the MIME type of the message.Assigns theMustShow
attribute.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
SignMessageBuilder
public SignMessageBuilder()
-
-
Method Details
-
builder
Utility method that creates a builder.- Returns:
- a builder
-
message
Assigns the message to include.If the message should be encrypted, use
SignMessageEncrypter
after theSignMessage
has been built.- Parameters:
message
- the message to include (in cleartext)- Returns:
- the builder
-
displayEntity
Assigns the entityID of the entity responsible for displaying the sign message to the signer. When the sign message is encrypted, then this entity is also the holder of the private decryption key necessary to decrypt the sign message.- Parameters:
displayEntity
- the entityID of the recipient- Returns:
- the builder
-
mimeType
Assigns the MIME type of the message.- Parameters:
mimeType
- the MIME type- Returns:
- the builder
-
mustShow
Assigns theMustShow
attribute. When this parameter is set totrue
then the requested signature MUST NOT be created unless this message has been displayed and accepted by the signer.- Parameters:
mustShow
- the must show flag- Returns:
- the builder
-
getObjectType
- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<SignMessage>
-