| Package | Description |
|---|---|
| org.dihedron.crypto | |
| org.dihedron.crypto.exceptions | |
| org.dihedron.crypto.operations.decrypt |
The package containing classes supporting decryption.
|
| org.dihedron.crypto.operations.decrypt.pkcs7 |
The package containing the classes providing encryption in PKCS#7/CMS format.
|
| org.dihedron.crypto.operations.encrypt |
The package containing classes supporting PKCS#7 encryption.
|
| org.dihedron.crypto.operations.encrypt.pkcs7 |
The package containing the classes providing encryption in PKCS#7/CMS format.
|
| org.dihedron.crypto.operations.sign | |
| org.dihedron.crypto.operations.sign.pdf | |
| org.dihedron.crypto.operations.sign.pkcs7 |
The package containing the implementation of the CMS/PKCS#7 signer.
|
| org.dihedron.crypto.providers.mscapi | |
| org.dihedron.crypto.providers.pkcs12 | |
| org.dihedron.crypto.providers.smartcard |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
KeyRing.closeImpl()
Logs out of the key store, if supported by the underlying technology.
|
List<String> |
KeyRing.enumerateAliases()
Returns a list of aliases for the given key store.
|
Certificate |
KeyRing.getCertificate(String alias)
Retrieves the certificate for the given alias.
|
List<Certificate> |
KeyRing.getCertificateChain(String signatureAlias)
Gets the certificate chain for the given alias.
|
Certificate[] |
KeyRing.getCertificateChainAsArray(String signatureAlias)
Gets the certificate chain for the given alias, as an array of Certificates.
|
KeyPair |
KeyRing.getKeyPair(String alias,
String password)
Gets a private and public key pair for the
given alias.
|
Key |
KeyRing.getPrivateKey(String alias)
Returns the private key (or a proxy) for the given alias.
|
Key |
KeyRing.getPrivateKey(String alias,
String password)
Returns the private key for the given alias, using the provided password
to unlock it; the key pair (private/public) password can differ from that
of the key store it is kept in.
|
Key |
KeyRing.getPublicKey(String alias)
Returns the public key for the given alias.
|
Key |
KeyRing.getPublicKey(String alias,
String password)
Returns the public key for the given alias, using the provided password
to unlock it; the key pair (private/public) password can differ from that
of the key store it is kept in.
|
List<String> |
KeyRing.getSignatureKeyAliases()
Retrieves a list of aliases corresponding to certificates that bear the
"signature" critical extension OID.
|
boolean |
KeyRing.isCertificateAlias(String alias)
Checks whether the alias has a corresponding certificate.
|
boolean |
KeyRing.isPrivateKeyAlias(String alias)
Checks whether the alias has a corresponding private key.
|
KeyRing |
KeyRing.open()
Acquires a reference to a KeyStore and returns its reference after having
logged in.
|
protected abstract KeyStore |
KeyRing.openImpl()
Loads and logs in to the key store.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CertificateEncodingException |
class |
CertificateException
The base class for all exceptions related to certificate validity or
availability.
|
class |
CertificateExpiredException |
class |
CertificateLoaderException |
class |
CertificateNotYetValidException |
class |
InvalidPinException |
class |
LockedPinException |
class |
ProviderException
The root of the exception hierarchy in the Crypto library.
|
class |
SmartCardException
The root of the smart card provider-specific exceptions.
|
class |
UnavailableDriverException |
class |
UnsupportedFormatException |
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
Decryptor.decrypt(byte[] ciphertext)
Encrypts the given byte array, returning the encrypted bytes.
|
abstract boolean |
Decryptor.initialise(Object... parameters)
Initialises the class with a set of (optional) parameters.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
Pkcs7Decryptor.decrypt(byte[] ciphertext) |
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
Encryptor.encrypt(byte[] plaintext)
Encrypts the given byte array, returning the encrypted bytes.
|
byte[] |
EncryptZipFile.encrypt(byte[] plaintext,
String provider,
String url,
String name,
String filter) |
abstract boolean |
Encryptor.initialise(Object... parameters)
Initialises the class with a set of (optional) parameters.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
Pkcs7Encryptor.encrypt(byte[] plaintext) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Signer.initialise()
Initialises the object.
|
static Signer |
SignerFactory.makeSigner(SignerFactory.Type type,
String alias,
KeyRing keyring,
Provider provider,
SignatureAlgorithm algorithm)
Creates a signer of the given type, initialising it with the given
algorithm information and the given key store to access the private key.
|
abstract byte[] |
Signer.sign(byte[] data)
Signs the given set of data.
|
abstract boolean |
Signer.verify(byte[] signed)
Verifies the signature of the given set of encapsulated data.
|
abstract boolean |
Signer.verify(byte[] signed,
byte[] data)
Verifies the signature of the given set of detached data.
|
| Constructor and Description |
|---|
Signer(String alias,
KeyRing keyring,
Provider provider)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PdfSigner.initialise() |
byte[] |
PdfSigner.sign(byte[] data) |
boolean |
PdfSigner.verify(byte[] signed) |
boolean |
PdfSigner.verify(byte[] signed,
byte[] data) |
| Constructor and Description |
|---|
PdfSigner(String alias,
KeyRing keyring,
Provider provider) |
PdfSigner(String alias,
KeyRing keyring,
Provider provider,
PdfSigner.Mode mode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PKCS7Signer.initialise() |
byte[] |
PKCS7Signer.sign(byte[] data) |
boolean |
PKCS7Signer.verify(byte[] signed) |
boolean |
PKCS7Signer.verify(byte[] signed,
byte[] data) |
| Constructor and Description |
|---|
PKCS7Signer(String alias,
KeyRing keyring,
Provider provider,
SignatureAlgorithm algorithm)
Constructor.
|
PKCS7Signer(String alias,
KeyRing keyring,
Provider provider,
String digest,
String encryption)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
MicrosoftKeyRing.closeImpl() |
protected KeyStore |
MicrosoftKeyRing.openImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PKCS12KeyRing.closeImpl() |
protected KeyStore |
PKCS12KeyRing.openImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
SmartCardKeyRing.closeImpl() |
protected KeyStore |
SmartCardKeyRing.openImpl() |
Copyright © 2012-2014 Andrea Funtò. See here for terms and conditions.