org.apache.james.security
Interface KeyHolder

All Known Implementing Classes:
SMIMEKeyHolder

public interface KeyHolder

Interface to an object that will do cryptographic activity on a MimeMessage, and contains the needed cryptographic key.

The implementing objects have the role of being a simpler intermediate to the crypto libraries.

Since:
3.0
Version:
CVS $Revision: 647925 $ $Date: 2008-04-14 19:38:17 +0100 (Mon, 14 Apr 2008) $

Method Summary
 javax.mail.internet.MimeMultipart generate(javax.mail.internet.MimeBodyPart content)
          Generates a signed MimeMultipart from a MimeBodyPart.
 javax.mail.internet.MimeMultipart generate(javax.mail.internet.MimeMessage message)
          Generates a signed MimeMultipart from a MimeMessage.
 java.lang.String getSignerAddress()
          Getter for property signerAddress.
 java.lang.String getSignerCN()
          Getter for property signerCN.
 java.lang.String getSignerDistinguishedName()
          Getter for property signerDistinguishedName.
 

Method Detail

generate

javax.mail.internet.MimeMultipart generate(javax.mail.internet.MimeMessage message)
                                           throws java.lang.Exception
Generates a signed MimeMultipart from a MimeMessage.

Parameters:
message - The message to sign.
Returns:
The signed MimeMultipart.
Throws:
java.lang.Exception

generate

javax.mail.internet.MimeMultipart generate(javax.mail.internet.MimeBodyPart content)
                                           throws java.lang.Exception
Generates a signed MimeMultipart from a MimeBodyPart.

Parameters:
content - The content to sign.
Returns:
The signed MimeMultipart.
Throws:
java.lang.Exception

getSignerDistinguishedName

java.lang.String getSignerDistinguishedName()
Getter for property signerDistinguishedName.

Returns:
Value of property signerDistinguishedName.

getSignerCN

java.lang.String getSignerCN()
Getter for property signerCN.

Returns:
Value of property signerCN.

getSignerAddress

java.lang.String getSignerAddress()
Getter for property signerAddress.

Returns:
Value of property signerMailAddress.


Copyright © 2008 The Apache Software Foundation. All Rights Reserved.