Package de.xima.fc.mail.impl
Class RecipientEncryptionResult
- java.lang.Object
-
- de.xima.fc.mail.impl.RecipientEncryptionResult
-
- All Implemented Interfaces:
IRecipientEncryptionResult,Serializable
public class RecipientEncryptionResult extends Object implements IRecipientEncryptionResult
Implementation ofIRecipientEncryptionResult.- Since:
- 8.5.0
- Author:
- Norman Lorenz
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecipientEncryptionResultfailure(javax.mail.Address recipient, Exception exception)ExceptiongetException()If encryption failed due to an exception, this method returns the exception that caused the failure.javax.mail.AddressgetRecipient()The recipient for whom this encryption result applies.booleanisSuccess()Indicates whether the encryption was successful for this recipient.static RecipientEncryptionResultsuccess(javax.mail.Address recipient)
-
-
-
Method Detail
-
failure
public static RecipientEncryptionResult failure(javax.mail.Address recipient, Exception exception)
-
success
public static RecipientEncryptionResult success(javax.mail.Address recipient)
-
getException
public Exception getException()
Description copied from interface:IRecipientEncryptionResultIf encryption failed due to an exception, this method returns the exception that caused the failure. If encryption was successful, this method returns null.- Specified by:
getExceptionin interfaceIRecipientEncryptionResult- Returns:
- The exception if encryption failed, or null if it was successful.
- See Also:
IRecipientEncryptionResult.isSuccess()
-
getRecipient
public javax.mail.Address getRecipient()
Description copied from interface:IRecipientEncryptionResultThe recipient for whom this encryption result applies.- Specified by:
getRecipientin interfaceIRecipientEncryptionResult- Returns:
- The recipient address.
-
isSuccess
public boolean isSuccess()
Description copied from interface:IRecipientEncryptionResultIndicates whether the encryption was successful for this recipient.- Specified by:
isSuccessin interfaceIRecipientEncryptionResult- Returns:
- true if encryption was successful, false otherwise.
-
-