public interface CryptoContent
This interface requires to implement three methods, setHeaders
to set additional headers/parameters for the part containing the
CryptoContent, getContentType
for getting the
type of the crypto content and getSMimeType
to get
the smime-type parameter of the ContentType.
Within the S/MIME library of IAIK-CMS this interface is implemented by the
classes SignedContent
,
EncryptedContent
, AuthEncryptedContent
,
CompressedContent
, PKCS10Content
and
ReceiptContent
for setting the following headers, respectively:
Content-Disposition: attachment"; filename="smime.p7s" Content-Transfer-Encoding: base64
Content-Disposition: attachment"; filename="smime.p7c" Content-Transfer-Encoding: base64
Content-Disposition: attachment"; filename="smime.p7m" Content-Transfer-Encoding: base64
Content-Disposition: attachment"; filename="smime.p7m" Content-Transfer-Encoding: base64
Content-Disposition: attachment"; filename="smime.p7z" Content-Transfer-Encoding: base64
Content-Disposition: attachment"; filename="smime.p10" Content-Transfer-Encoding: base64
Content-Disposition: attachment"; filename="smime.p7m" Content-Transfer-Encoding: base64
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Returns the ContentType and any attached parameters of this CryptoContent.
|
java.lang.String |
getSMimeType()
Returns the smime-type parameter of the ContentType of this CryptoContent.
|
void |
setHeaders(jakarta.mail.Part part)
Sets additional headers/parameters for the part containing this CryptoContent.
|
void setHeaders(jakarta.mail.Part part)
part
- the part to which to add the headers/parametersjava.lang.String getContentType()
java.lang.String getSMimeType()