Package de.xima.fc.mail.impl
Class MailSigningResult
- java.lang.Object
-
- de.xima.fc.mail.impl.MailSigningResult
-
- All Implemented Interfaces:
IMailSigningResult
public class MailSigningResult extends Object implements IMailSigningResult
Implementation ofIMailSigningResult.- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MailSigningResultfailure(javax.mail.Address sender, Exception exception)ExceptiongetException()If signing failed due to an exception, this method returns the exception that caused the failure.javax.mail.AddressgetSender()Gets the sender address used for signing the email.booleanisSuccess()Indicates whether the signing operation was successful.static MailSigningResultsuccess(javax.mail.Address sender)
-
-
-
Method Detail
-
failure
public static MailSigningResult failure(javax.mail.Address sender, Exception exception)
-
success
public static MailSigningResult success(javax.mail.Address sender)
-
getException
public Exception getException()
Description copied from interface:IMailSigningResultIf signing failed due to an exception, this method returns the exception that caused the failure. If signing was successful, this method returns null.- Specified by:
getExceptionin interfaceIMailSigningResult- Returns:
- The exception if signing failed, or null if it was successful.
- See Also:
IMailSigningResult.isSuccess()
-
getSender
public javax.mail.Address getSender()
Description copied from interface:IMailSigningResultGets the sender address used for signing the email.- Specified by:
getSenderin interfaceIMailSigningResult- Returns:
- The sender address.
-
isSuccess
public boolean isSuccess()
Description copied from interface:IMailSigningResultIndicates whether the signing operation was successful.- Specified by:
isSuccessin interfaceIMailSigningResult- Returns:
- true if signing was successful, false otherwise.
-
-