public interface SignMessage extends SAMLObject, AttributeExtensibleXMLObject
The <SignMessage>
element holds a message to the signer with information about what is being signed. The sign
message is provided either in plain text using the <Message>
child element or as an encrypted message using
the <EncryptedMessage>
child element. This element's SignMessageType complex type includes the
following attributes and elements:
MustShow
[Optional] (Default "false")DisplayEntity
[Optional]MimeType
[Optional] (Default "text")<Message>
[Choice]<EncryptedMessage>
[Choice]<Message>
element. Either a <Message>
or an <EncryptedMessage>
element MUST
be present.<SignMessage>
element and the SignMessageType complex type:
<xs:complexType name="SignMessageType">
<xs:choice>
<xs:element ref="csig:Message"/>
<xs:element ref="csig:EncryptedMessage"/>
</xs:choice>
<xs:attribute name="MustShow" type="xs:boolean" default="false"/>
<xs:attribute name="DisplayEntity" type="xs:anyURI"/>
<xs:attribute name="MimeType" default="text">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="text/html"/>
<xs:enumeration value="text"/>
<xs:enumeration value="text/markdown"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
<xs:element name="Message" type="xs:base64Binary"/>
<xs:element name="EncryptedMessage" type="saml:EncryptedElementType"/>
See "DSS Extension for Federated Central Signing Services".
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ELEMENT_LOCAL_NAME
Name of the element.
|
static QName |
DEFAULT_ELEMENT_NAME
Default element name.
|
static String |
DISPLAY_ENTITY_ATTR_NAME
Attribute label for the DisplayEntity attribute.
|
static String |
MIME_TYPE_ATTR_NAME
Attribute label for the MimeType attribute.
|
static String |
MUST_SHOW_ATTR_NAME
Attribute label for the MustShow attribute.
|
static String |
TYPE_LOCAL_NAME
Local name of the type
|
static QName |
TYPE_NAME
QName of the XSI type.
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayEntity()
Returns the value of the
DisplayEntity attribute. |
EncryptedMessage |
getEncryptedMessage()
Returns the
EncryptedMessage element. |
Message |
getMessage()
Returns the
Message element. |
String |
getMimeType()
Returns the value of the
MimeType attribute. |
SignMessageMimeTypeEnum |
getMimeTypeEnum()
Returns the value of the
MimeType attribute as an enum. |
Boolean |
isMustShow()
Returns the value of the
MustShow attribute. |
XSBooleanValue |
isMustShowXSBoolean()
Returns the
MustShow attribute as a XSBooleanValue . |
void |
setDisplayEntity(String displayEntity)
Assigns the value for the
DisplayEntity attribute. |
void |
setEncryptedMessage(EncryptedMessage encryptedMessage)
Assigns the
EncryptedMessage element. |
void |
setMessage(Message message)
Assigns the
Message element. |
void |
setMimeType(SignMessageMimeTypeEnum mimeType)
Assigns the
MimeType attribute. |
void |
setMimeType(String mimeType)
Assigns the
MimeType attribute. |
void |
setMustShow(Boolean mustShow)
Assigns the value of the
MustShow attribute. |
void |
setMustShow(XSBooleanValue mustShow)
Assigns the value of the
MustShow attribute. |
getUnknownAttributes
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
static final String DEFAULT_ELEMENT_LOCAL_NAME
static final QName DEFAULT_ELEMENT_NAME
static final String TYPE_LOCAL_NAME
static final QName TYPE_NAME
static final String MUST_SHOW_ATTR_NAME
static final String DISPLAY_ENTITY_ATTR_NAME
static final String MIME_TYPE_ATTR_NAME
Boolean isMustShow()
MustShow
attribute.MustShow
attributeXSBooleanValue isMustShowXSBoolean()
MustShow
attribute as a XSBooleanValue
.MustShow
attributeisMustShow()
void setMustShow(Boolean mustShow)
MustShow
attribute.mustShow
- the value to assignvoid setMustShow(XSBooleanValue mustShow)
MustShow
attribute.mustShow
- the value to assignsetMustShow(Boolean)
String getDisplayEntity()
DisplayEntity
attribute.DisplayEntity
attributevoid setDisplayEntity(String displayEntity)
DisplayEntity
attribute.displayEntity
- the entityID to assignString getMimeType()
MimeType
attribute.MimeType
attributeSignMessageMimeTypeEnum getMimeTypeEnum()
MimeType
attribute as an enum.MimeType
attributevoid setMimeType(String mimeType)
MimeType
attribute.mimeType
- the mime type to assignvoid setMimeType(SignMessageMimeTypeEnum mimeType)
MimeType
attribute.mimeType
- the mime type as an enum to assignMessage getMessage()
Message
element.Message
elementvoid setMessage(Message message)
Message
element.message
- the message to assignEncryptedMessage getEncryptedMessage()
EncryptedMessage
element.EncryptedMessage
elementvoid setEncryptedMessage(EncryptedMessage encryptedMessage)
EncryptedMessage
element.encryptedMessage
- the EncryptedMessage
element to assignCopyright © 2018 Litsec AB. All rights reserved.