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