SecureEmailManager
Inheritance: java.lang.Object
public class SecureEmailManager
Class that provided methods for working with secure emails.
Constructors
Constructor | Description |
---|---|
SecureEmailManager() |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
msg | MailMessage | Source MailMessage. |
key | SmimeKey | X.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:
Parameter | Type | Description |
---|---|---|
msg | MailMessage | Source MailMessage. |
key | SmimeKey | X.509 certificate. |
options | SignatureOptions | Additional 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:
Parameter | Type | Description |
---|---|---|
msg | MapiMessage | Source MapiMessage. |
key | SmimeKey | X.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:
Parameter | Type | Description |
---|---|---|
msg | MapiMessage | Source MapiMessage. |
key | SmimeKey | X.509 certificate. |
options | SignatureOptions | Additional options SignatureOptions |
Returns: MapiMessage - Signed MapiMessage
checkSignature(MailMessage msg)
public final SmimeResult checkSignature(MailMessage msg)
Checking signature MailMessage.
Parameters:
Parameter | Type | Description |
---|---|---|
msg | MailMessage | The 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:
Parameter | Type | Description |
---|---|---|
msg | MailMessage | The MailMessage to check. |
key | SmimeKey |
Returns: SmimeResult - Result of checkingSmimeResult
checkSignature(MapiMessage msg)
public final SmimeResult checkSignature(MapiMessage msg)
Checking signature MapiMessage.
Parameters:
Parameter | Type | Description |
---|---|---|
msg | MapiMessage | The 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:
Parameter | Type | Description |
---|---|---|
msg | MapiMessage | The MapiMessage to check. |
key | SmimeKey |
Returns: SmimeResult - Result of checkingSmimeResult
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.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:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |