iaik.smime
Interface CryptoContent

All Known Implementing Classes:
AuthEncryptedContent, CompressedContent, EncryptedContent, ReceiptContent, SignedContent, SMimeContent

public interface CryptoContent

Interface implemented by all IAIK CryptoContent implementations.

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:


Method Summary
 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(javax.mail.Part part)
          Sets additional headers/parameters for the part containing this CryptoContent.
 

Method Detail

setHeaders

void setHeaders(javax.mail.Part part)
Sets additional headers/parameters for the part containing this CryptoContent.

Parameters:
part - the part to which to add the headers/parameters

getContentType

java.lang.String getContentType()
Returns the ContentType and any attached parameters of this CryptoContent.

Returns:
the content type of this crypto content

getSMimeType

java.lang.String getSMimeType()
Returns the smime-type parameter of the ContentType of this CryptoContent.

Returns:
the smime-type parameter

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

IAIK-CMS 6.0, (c) 2002 IAIK, (c) 2003, 2023 SIC