Package de.xima.fc.mail.interfaces
Interface IRecipientEncryptionResult
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RecipientEncryptionResult
public interface IRecipientEncryptionResult extends Serializable
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExceptiongetException()If encryption failed due to an exception, this method returns the exception that caused the failure.@NotNull javax.mail.AddressgetRecipient()The recipient for whom this encryption result applies.booleanisSuccess()Indicates whether the encryption was successful for this recipient.
-
-
-
Method Detail
-
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:
isSuccess()
-
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.
-
-