Class MailSigningResult

java.lang.Object
de.xima.fc.mail.impl.MailSigningResult
All Implemented Interfaces:
IMailSigningResult

public class MailSigningResult extends Object implements IMailSigningResult
Implementation of IMailSigningResult.
Since:
8.5.0
Author:
Norman Lorenz
  • Method Details

    • 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: IMailSigningResult
      If 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:
      getException in interface IMailSigningResult
      Returns:
      The exception if signing failed, or null if it was successful.
      See Also:
    • getSender

      public javax.mail.Address getSender()
      Description copied from interface: IMailSigningResult
      Gets the sender address used for signing the email.
      Specified by:
      getSender in interface IMailSigningResult
      Returns:
      The sender address.
    • isSuccess

      public boolean isSuccess()
      Description copied from interface: IMailSigningResult
      Indicates whether the signing operation was successful.
      Specified by:
      isSuccess in interface IMailSigningResult
      Returns:
      true if signing was successful, false otherwise.