|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Cryptographer
Executes the cryptography operations. This include encryption, decryption, and signature generation.
| Method Summary | |
|---|---|
void |
checkSignature(SignedEntity signedEntity,
java.security.cert.X509Certificate signerCertificate,
java.util.Collection<java.security.cert.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,
java.util.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,
java.util.Collection<java.security.cert.X509Certificate> encryptingCertificates)
Encrypts an entity using the provided certificates. |
MimeEntity |
encrypt(MimeEntity entity,
java.security.cert.X509Certificate encryptingCertificate)
Encrypts an entity using the provided certificate. |
MimeEntity |
encrypt(javax.mail.internet.MimeMultipart mmEntity,
java.util.Collection<java.security.cert.X509Certificate> encryptingCertificates)
Encrypts a mulit part MIME entity using the provided certificates. |
MimeEntity |
encrypt(javax.mail.internet.MimeMultipart entity,
java.security.cert.X509Certificate encryptingCertificate)
Encrypts a mulit part MIME entity using the provided certificate. |
SignedEntity |
sign(Message message,
java.util.Collection<java.security.cert.X509Certificate> signingCertificates)
|
SignedEntity |
sign(Message message,
java.security.cert.X509Certificate signingCertificate)
Signs a message with the provided certificate. |
SignedEntity |
sign(MimeEntity entity,
java.util.Collection<java.security.cert.X509Certificate> signingCertificates)
Signs an entity with the provided certificates. |
SignedEntity |
sign(MimeEntity entity,
java.security.cert.X509Certificate signingCertificate)
Signs an entity with the provided certificate. |
| Method Detail |
|---|
MimeEntity encrypt(javax.mail.internet.MimeMultipart entity,
java.security.cert.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,
java.util.Collection<java.security.cert.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,
java.security.cert.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,
java.util.Collection<java.security.cert.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,
java.util.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,
java.security.cert.X509Certificate signingCertificate)
message - The message that will be signed.signingCertificate - The certificate used to sign the message.
SignedEntity sign(Message message,
java.util.Collection<java.security.cert.X509Certificate> signingCertificates)
SignedEntity sign(MimeEntity entity,
java.security.cert.X509Certificate signingCertificate)
message - The entity that will be signed.signingCertificate - The certificate used to sign the message.
SignedEntity sign(MimeEntity entity,
java.util.Collection<java.security.cert.X509Certificate> signingCertificates)
message - The entity that will be signed.signingCertificates - The certificates used to sign the message.
void checkSignature(SignedEntity signedEntity,
java.security.cert.X509Certificate signerCertificate,
java.util.Collection<java.security.cert.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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||