@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, setFromBase64
getKeyStore, getKeyStoreParameters, setKeyStore, setKeyStoreParameters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFromBase64
public 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
SignedDataVerifierConfiguration
CryptoCmsConstants.CAMEL_CRYPTO_CMS_SIGNED_DATA
is base64
encoded.isSignedDataHeaderBase64
in interface SignedDataVerifierConfiguration
CryptoCmsException
public 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
SignedDataVerifierConfiguration
true
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 SignedDataVerifierConfiguration
CryptoCmsException
public Collection<X509Certificate> getCertificates(org.apache.camel.Exchange exchange) throws CryptoCmsException
SignedDataVerifierConfiguration
getCertificates
in interface SignedDataVerifierConfiguration
CryptoCmsException
public DefaultSignedDataVerifierConfiguration copy()
SignedDataVerifierConfiguration
copy
in interface SignedDataVerifierConfiguration
Apache Camel