public interface Cryptographer
| Modifier and Type | Method and Description |
|---|---|
void |
checkSignature(SignedEntity signedEntity,
X509Certificate signerCertificate,
Collection<X509Certificate> anchors)
Validates that a signed entity has a valid message and signature.
|
MimeEntity |
decrypt(Message message,
X509CertificateEx decryptingCertificate)
Decrypts a message with the provided certificates private key.
|
MimeEntity |
decrypt(MimeEntity encryptedEntity,
Collection<X509CertificateEx> decryptingCertificates)
Decrypts an entity with the provided certificates' private key.
|
MimeEntity |
decrypt(MimeEntity encryptedEntity,
X509CertificateEx decryptingCertificate)
Decrypts an entity with the provided certificate's private key.
|
org.bouncycastle.cms.CMSSignedData |
deserializeEnvelopedSignature(byte[] messageBytes) |
org.bouncycastle.cms.CMSSignedData |
deserializeEnvelopedSignature(MimeEntity envelopeEntity) |
org.bouncycastle.cms.CMSSignedData |
deserializeSignatureEnvelope(SignedEntity entity)
Extracts the ASN1 encoded signature data from the signed entity.
|
MimeEntity |
encrypt(MimeEntity entity,
Collection<X509Certificate> encryptingCertificates)
Encrypts an entity using the provided certificates.
|
MimeEntity |
encrypt(MimeEntity entity,
X509Certificate encryptingCertificate)
Encrypts an entity using the provided certificate.
|
MimeEntity |
encrypt(javax.mail.internet.MimeMultipart mmEntity,
Collection<X509Certificate> encryptingCertificates)
Encrypts a mulit part MIME entity using the provided certificates.
|
MimeEntity |
encrypt(javax.mail.internet.MimeMultipart entity,
X509Certificate encryptingCertificate)
Encrypts a mulit part MIME entity using the provided certificate.
|
SignedEntity |
sign(Message message,
Collection<X509Certificate> signingCertificates) |
SignedEntity |
sign(Message message,
X509Certificate signingCertificate)
Signs a message with the provided certificate.
|
SignedEntity |
sign(MimeEntity entity,
Collection<X509Certificate> signingCertificates)
Signs an entity with the provided certificates.
|
SignedEntity |
sign(MimeEntity entity,
X509Certificate signingCertificate)
Signs an entity with the provided certificate.
|
MimeEntity encrypt(javax.mail.internet.MimeMultipart entity, X509Certificate encryptingCertificate)
entity - The entity that will be encrypted.encryptingCertificate - The public certificates that will be used to encrypt the message.MimeEntity encrypt(javax.mail.internet.MimeMultipart mmEntity, Collection<X509Certificate> encryptingCertificates)
entity - The entity that will be encrypted.encryptingCertificates - The public certificates that will be used to encrypt the message.MimeEntity encrypt(MimeEntity entity, X509Certificate encryptingCertificate)
entity - The entity that will be encrypted.encryptingCertificate - The public certificates that will be used to encrypt the message.MimeEntity encrypt(MimeEntity entity, Collection<X509Certificate> encryptingCertificates)
entity - The entity that will be encrypted.encryptingCertificate - The public certificates that will be used to encrypt the message.MimeEntity decrypt(Message message, X509CertificateEx decryptingCertificate)
message - The message that will be decrypted.decryptingCertificate - The certificate whose private key will be used to decrypt the message.MimeEntity decrypt(MimeEntity encryptedEntity, X509CertificateEx decryptingCertificate)
encryptedEntity - The entity that will be decrypted.decryptingCertificate - The certificate whose private key will be used to decrypt the message.MimeEntity decrypt(MimeEntity encryptedEntity, Collection<X509CertificateEx> decryptingCertificates)
encryptedEntity - The entity that will be decrypted.decryptingCertificate - The certificates whose private keys will be used to decrypt the message.SignedEntity sign(Message message, X509Certificate signingCertificate)
message - The message that will be signed.signingCertificate - The certificate used to sign the message.SignedEntity sign(Message message, Collection<X509Certificate> signingCertificates)
SignedEntity sign(MimeEntity entity, X509Certificate signingCertificate)
message - The entity that will be signed.signingCertificate - The certificate used to sign the message.SignedEntity sign(MimeEntity entity, Collection<X509Certificate> signingCertificates)
message - The entity that will be signed.signingCertificates - The certificates used to sign the message.void checkSignature(SignedEntity signedEntity, X509Certificate signerCertificate, Collection<X509Certificate> anchors) throws SignatureValidationException
signedEntity - The entity containing the original signed part and the message signature.signerCertificate - The certificate used to sign the message.anchors - A collection of certificate anchors used to determine if the certificates used in the signature can be validated as trusted certificates.SignatureValidationExceptionorg.bouncycastle.cms.CMSSignedData deserializeSignatureEnvelope(SignedEntity entity)
entity - The entity containing the original signed part and the message signature.org.bouncycastle.cms.CMSSignedData deserializeEnvelopedSignature(MimeEntity envelopeEntity)
org.bouncycastle.cms.CMSSignedData deserializeEnvelopedSignature(byte[] messageBytes)
Copyright © 2010-2016 NHIN Direct. All Rights Reserved.