Class SignMessageParameters.SignMessageParametersBuilder
java.lang.Object
se.idsec.signservice.integration.signmessage.SignMessageParameters.SignMessageParametersBuilder
- All Implemented Interfaces:
ObjectBuilder<SignMessageParameters>
- Enclosing class:
- SignMessageParameters
public static class SignMessageParameters.SignMessageParametersBuilder
extends Object
implements ObjectBuilder<SignMessageParameters>
A builder for
SignMessageParameters
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the object.displayEntity
(String displayEntity) The ID (SAML entityID) of the entity (IdP) that should display this message.The sign message MIME type.mimeType
(SignMessageMimeType mimeType) The sign message MIME type.Specifies if the requester of the signature requires that the sign message is displayed to the user.performEncryption
(boolean performEncryption) Tells whether the supplied sign message should be encrypted withSignMessageParameters.getDisplayEntity()
as the recipient.signMessage
(String signMessage) The sign message (non encrypted) content according to specified mime type.toString()
-
Method Details
-
mimeType
The sign message MIME type.- Parameters:
mimeType
- the MIME type- Returns:
- the builder
-
mimeType
The sign message MIME type.- Parameters:
mimeType
- the MIME type- Returns:
- the builder
-
signMessage
The sign message (non encrypted) content according to specified mime type.- Parameters:
signMessage
- the sign message- Returns:
this
.
-
performEncryption
public SignMessageParameters.SignMessageParametersBuilder performEncryption(boolean performEncryption) Tells whether the supplied sign message should be encrypted withSignMessageParameters.getDisplayEntity()
as the recipient.- Parameters:
performEncryption
- Tells whether the supplied sign message should be encrypted- Returns:
this
.
-
mustShow
Specifies if the requester of the signature requires that the sign message is displayed to the user. If the Identity Provider cannot fulfill this requirement it must not proceed.- Parameters:
mustShow
- the MustShow attribute- Returns:
this
.
-
displayEntity
The ID (SAML entityID) of the entity (IdP) that should display this message.Note: The
DisplayEntity
attribute of theSignMessage
element is required if the sign message is to be encrypted. In almost all cases, except for some odd Proxy-IdP cases, this is the same value as the ID that is supplied in the authentication requirements (AuthnRequirements
). Therefore, if this method returnsnull
, and the message should be encrypted, the SignService Integration Service will use theAuthnRequirements.getAuthnServiceID()
value.- Parameters:
displayEntity
- the SAML entityID for the display entity- Returns:
this
.
-
build
Description copied from interface:ObjectBuilder
Builds the object.- Specified by:
build
in interfaceObjectBuilder<SignMessageParameters>
- Returns:
- the object
-
toString
-