iaik.smime
Interface CryptoContent

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

public interface CryptoContent

Interface to be implemented by all IAIK CryptoContent implementations.

This interface requires to implement only two methods, setHeaders to set additional headers/parameters for the part containing the CryptoContent and getContentType for getting the type of the crypto content. Within the S/MIME library of IAIK-CMS this interface is implemented by the three classes EncryptedContent, SignedContent and PKCS10Content setting the following headers, respectively:

The following content types are returned by method getContentType():


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 5.1, (c) 2002 IAIK, (c) 2003 - 2010 SIC