Interface IRecipientEncryptionResult
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RecipientEncryptionResult
The result of an encryption attempt for a specific recipient, including whether the encryption was successful and any
exception that occurred if it was not.
- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
Method Summary
Modifier and TypeMethodDescriptionIf encryption failed due to an exception, this method returns the exception that caused the failure.@NotNull javax.mail.AddressThe recipient for whom this encryption result applies.booleanIndicates whether the encryption was successful for this recipient.
-
Method Details
-
getException
Exception getException()If encryption failed due to an exception, this method returns the exception that caused the failure. If encryption was successful, this method returns null.- Returns:
- The exception if encryption failed, or null if it was successful.
- See Also:
-
getRecipient
@NotNull @NotNull javax.mail.Address getRecipient()The recipient for whom this encryption result applies.- Returns:
- The recipient address.
-
isSuccess
boolean isSuccess()Indicates whether the encryption was successful for this recipient.- Returns:
- true if encryption was successful, false otherwise.
-