Class SignMessageParameters
java.lang.Object
se.idsec.signservice.integration.signmessage.SignMessageParameters
- All Implemented Interfaces:
Serializable
A representation of sign message parameters.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder forSignMessageParameters
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the ID (SAML entityID) of the entity (IdP) that should display this message.Gets the sign message MIME type.Specifies if the requester of the signature requires that the sign message is displayed to the user.Gets the sign message (non encrypted) content according to specified mime type.boolean
Tells whether the supplied sign message should be encrypted withgetDisplayEntity()
as the recipient.void
setDisplayEntity
(String displayEntity) Assigns the ID (SAML entityID) of the entity (IdP) that should display this message.void
setMimeType
(String mimeType) The sign message MIME type.void
setMimeType
(SignMessageMimeType mimeType) The sign message MIME type.void
setMustShow
(Boolean mustShow) Specifies if the requester of the signature requires that the sign message is displayed to the user.void
setPerformEncryption
(boolean performEncryption) Assigns whether the supplied sign message should be encrypted withgetDisplayEntity()
as the recipient.void
setSignMessage
(String signMessage) Assigns the sign message (non encrypted) content according to specified mime type.
-
Constructor Details
-
SignMessageParameters
public SignMessageParameters()
-
-
Method Details
-
getSignMessage
Gets the sign message (non encrypted) content according to specified mime type.- Returns:
- the sign message
-
setSignMessage
Assigns the sign message (non encrypted) content according to specified mime type.- Parameters:
signMessage
- the sign message
-
isPerformEncryption
public boolean isPerformEncryption()Tells whether the supplied sign message should be encrypted withgetDisplayEntity()
as the recipient.- Returns:
- tells whether encryption should be performed
-
setPerformEncryption
public void setPerformEncryption(boolean performEncryption) Assigns whether the supplied sign message should be encrypted withgetDisplayEntity()
as the recipient.- Parameters:
performEncryption
- Tells whether the supplied sign message should be encrypted
-
getMimeType
Gets the sign message MIME type. SeeSignMessageMimeType
for possible values.- Returns:
- the MIME type, or null which defaults to
SignMessageMimeType.TEXT
.
-
setMimeType
The sign message MIME type. SeeSignMessageMimeType
for possible values.- Parameters:
mimeType
- the MIME type
-
setMimeType
The sign message MIME type.- Parameters:
mimeType
- the MIME type
-
getMustShow
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.- Returns:
- the MustShow flag, or null
-
setMustShow
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
-
getDisplayEntity
Gets the ID (SAML entityID) of the entity (IdP) that should display this message.- Returns:
- the entityID of the IdP that should display the message
-
setDisplayEntity
Assigns 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
-