@UriParams public class DefaultSignedDataVerifierConfiguration extends DefaultCryptoCmsUnMarshallerConfiguration implements SignedDataVerifierConfiguration, Cloneable
| Constructor and Description |
|---|
DefaultSignedDataVerifierConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
DefaultSignedDataVerifierConfiguration |
copy()
Creates a copy of this instance.
|
Collection<X509Certificate> |
getCertificates(org.apache.camel.Exchange exchange)
Returns the collection of certificates whose public keys are used to
verify the signatures contained in the Signed Data object if the
certificates match the signer information given in the Signed Data
object.
|
Boolean |
isSignedDataHeaderBase64(org.apache.camel.Exchange exchange)
Indicates whether the value in the Signed Data header (given by
CryptoCmsConstants.CAMEL_CRYPTO_CMS_SIGNED_DATA is base64
encoded. |
Boolean |
isVerifySignaturesOfAllSigners(org.apache.camel.Exchange exchange)
If
true then the signatures of all signers are checked. |
void |
setSignedDataHeaderBase64(Boolean signedDataHeaderBase64)
Indicates whether the value in the header CamelCryptoCmsSignedData is
base64 encoded.
|
void |
setVerifySignaturesOfAllSigners(Boolean verifySignaturesOfAllSigners)
If
true then the signatures of all signers contained in the
Signed Data object are verified. |
isFromBase64, setFromBase64getKeyStore, getKeyStoreParameters, setKeyStore, setKeyStoreParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFromBase64public DefaultSignedDataVerifierConfiguration()
public void setSignedDataHeaderBase64(Boolean signedDataHeaderBase64)
false.
Only relevant for detached signatures. In the detached signature case, the header contains the Signed Data object.
public Boolean isSignedDataHeaderBase64(org.apache.camel.Exchange exchange) throws CryptoCmsException
SignedDataVerifierConfigurationCryptoCmsConstants.CAMEL_CRYPTO_CMS_SIGNED_DATA is base64
encoded.isSignedDataHeaderBase64 in interface SignedDataVerifierConfigurationCryptoCmsExceptionpublic void setVerifySignaturesOfAllSigners(Boolean verifySignaturesOfAllSigners)
true then the signatures of all signers contained in the
Signed Data object are verified. If false then only one
signature whose signer info matches with one of the specified
certificates is verified. Default value is true.public Boolean isVerifySignaturesOfAllSigners(org.apache.camel.Exchange exchange) throws CryptoCmsException
SignedDataVerifierConfigurationtrue then the signatures of all signers are checked. If
false then the verifier searches for a signer which matches
with one of the specified certificates and verifies only the signature of
the first found signer.isVerifySignaturesOfAllSigners in interface SignedDataVerifierConfigurationCryptoCmsExceptionpublic Collection<X509Certificate> getCertificates(org.apache.camel.Exchange exchange) throws CryptoCmsException
SignedDataVerifierConfigurationgetCertificates in interface SignedDataVerifierConfigurationCryptoCmsExceptionpublic DefaultSignedDataVerifierConfiguration copy()
SignedDataVerifierConfigurationcopy in interface SignedDataVerifierConfigurationApache Camel