public class OperatorCreationException extends OperatorException
Operator builders — for example JcaContentSignerBuilder,
BcRSAContentSignerBuilder, JcaDigestCalculatorProviderBuilder,
JceCMSContentEncryptorBuilder — assemble a configured operator
(ContentSigner, DigestCalculator, etc.) from caller-supplied inputs:
an algorithm identifier or name, a key, a SecureRandom, optional JCA provider,
and so on. Construction can fail before any data has been processed, for reasons such as:
NoSuchAlgorithmException / NoSuchProviderException
/ InvalidKeyException on the cause chain);CryptoException on the cause chain).Throwable.getCause() for the underlying exception when one is supplied.| Constructor and Description |
|---|
OperatorCreationException(java.lang.String msg)
Construct an exception with the supplied diagnostic message and no underlying cause.
|
OperatorCreationException(java.lang.String msg,
java.lang.Throwable cause)
Construct an exception with the supplied diagnostic message and the underlying cause
(typically a
GeneralSecurityException subclass or a lightweight
org.bouncycastle.crypto.CryptoException) returned by the JCA or lightweight
machinery the builder was driving. |
public OperatorCreationException(java.lang.String msg,
java.lang.Throwable cause)
GeneralSecurityException subclass or a lightweight
org.bouncycastle.crypto.CryptoException) returned by the JCA or lightweight
machinery the builder was driving.msg - diagnostic message describing what the builder was trying to do and why
it failed.cause - the underlying exception that triggered the failure, or null.public OperatorCreationException(java.lang.String msg)
msg - diagnostic message describing what the builder was trying to do and why
it failed.