Module org.shredzone.acme4j.smime
Class AcmeInvalidMessageException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.shredzone.acme4j.exception.AcmeException
-
- org.shredzone.acme4j.smime.exception.AcmeInvalidMessageException
-
- All Implemented Interfaces:
Serializable
public class AcmeInvalidMessageException extends AcmeException
This exception is thrown when the challenge email message is invalid.If this exception is thrown, the challenge message does not match the actual challenge or has other issues. It must be rejected.
Reasons may be (for example):
- Unexpected sender address
- Bad S/MIME signature
- Since:
- 2.15
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AcmeInvalidMessageException(String msg)
Creates a newAcmeInvalidMessageException
.AcmeInvalidMessageException(String msg, Throwable cause)
Creates a newAcmeInvalidMessageException
.AcmeInvalidMessageException(String msg, List<org.bouncycastle.i18n.ErrorBundle> errors)
Creates a newAcmeInvalidMessageException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.bouncycastle.i18n.ErrorBundle>
getErrors()
Returns a list with further error details, if available.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AcmeInvalidMessageException
public AcmeInvalidMessageException(String msg)
Creates a newAcmeInvalidMessageException
.- Parameters:
msg
- Reason of the exception
-
AcmeInvalidMessageException
public AcmeInvalidMessageException(String msg, List<org.bouncycastle.i18n.ErrorBundle> errors)
Creates a newAcmeInvalidMessageException
.- Parameters:
msg
- Reason of the exceptionerrors
- List ofErrorBundle
with further details- Since:
- 2.16
-
AcmeInvalidMessageException
public AcmeInvalidMessageException(String msg, Throwable cause)
Creates a newAcmeInvalidMessageException
.- Parameters:
msg
- Reason of the exceptioncause
- Cause
-
-