SecureEmailManager

Inheritance: java.lang.Object

public class SecureEmailManager

Class that provided methods for working with secure emails.

Constructors

ConstructorDescription
SecureEmailManager()

Methods

MethodDescription
attachSignature(MailMessage msg, SmimeKey key)Creates a copy of the specified MailMessage and adds a digital signature to it.
attachSignature(MailMessage msg, SmimeKey key, SignatureOptions options)Creates a copy of the specified MailMessage and adds a digital signature to it.
attachSignature(MapiMessage msg, SmimeKey key)Creates a copy of the specified MapiMessage and adds a digital signature to it.
attachSignature(MapiMessage msg, SmimeKey key, SignatureOptions options)Creates a copy of the specified MapiMessage and adds a digital signature to it.
checkSignature(MailMessage msg)Checking signature MailMessage.
checkSignature(MailMessage msg, SmimeKey key)Checking signature MailMessage.
checkSignature(MapiMessage msg)Checking signature MapiMessage.
checkSignature(MapiMessage msg, SmimeKey key)Checking signature MapiMessage.
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

SecureEmailManager()

public SecureEmailManager()

attachSignature(MailMessage msg, SmimeKey key)

public MailMessage attachSignature(MailMessage msg, SmimeKey key)

Creates a copy of the specified MailMessage and adds a digital signature to it.

Parameters:

ParameterTypeDescription
msgMailMessageSource MailMessage.
keySmimeKeyX.509 certificate.

Returns: MailMessage - Signed MailMessage

attachSignature(MailMessage msg, SmimeKey key, SignatureOptions options)

public MailMessage attachSignature(MailMessage msg, SmimeKey key, SignatureOptions options)

Creates a copy of the specified MailMessage and adds a digital signature to it.

Parameters:

ParameterTypeDescription
msgMailMessageSource MailMessage.
keySmimeKeyX.509 certificate.
optionsSignatureOptionsAdditional options SignatureOptions

Returns: MailMessage - Signed MailMessage

attachSignature(MapiMessage msg, SmimeKey key)

public MapiMessage attachSignature(MapiMessage msg, SmimeKey key)

Creates a copy of the specified MapiMessage and adds a digital signature to it.

Parameters:

ParameterTypeDescription
msgMapiMessageSource MapiMessage.
keySmimeKeyX.509 certificate.

Returns: MapiMessage - Signed MapiMessage

attachSignature(MapiMessage msg, SmimeKey key, SignatureOptions options)

public MapiMessage attachSignature(MapiMessage msg, SmimeKey key, SignatureOptions options)

Creates a copy of the specified MapiMessage and adds a digital signature to it.

Parameters:

ParameterTypeDescription
msgMapiMessageSource MapiMessage.
keySmimeKeyX.509 certificate.
optionsSignatureOptionsAdditional options SignatureOptions

Returns: MapiMessage - Signed MapiMessage

checkSignature(MailMessage msg)

public final SmimeResult checkSignature(MailMessage msg)

Checking signature MailMessage.

Parameters:

ParameterTypeDescription
msgMailMessageThe MailMessage to check.

Returns: SmimeResult - Result of checkingSmimeResult

checkSignature(MailMessage msg, SmimeKey key)

public final SmimeResult checkSignature(MailMessage msg, SmimeKey key)

Checking signature MailMessage.

Parameters:

ParameterTypeDescription
msgMailMessageThe MailMessage to check.
keySmimeKey

Returns: SmimeResult - Result of checkingSmimeResult

checkSignature(MapiMessage msg)

public final SmimeResult checkSignature(MapiMessage msg)

Checking signature MapiMessage.

Parameters:

ParameterTypeDescription
msgMapiMessageThe MapiMessage to check.

Returns: SmimeResult - Result of checkingSmimeResult

checkSignature(MapiMessage msg, SmimeKey key)

public final SmimeResult checkSignature(MapiMessage msg, SmimeKey key)

Checking signature MapiMessage.

Parameters:

ParameterTypeDescription
msgMapiMessageThe MapiMessage to check.
keySmimeKey

Returns: SmimeResult - Result of checkingSmimeResult

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int