- FileCertificateLoader - Class in org.dihedron.crypto.certificates.impl
-
- FileCertificateLoader() - Constructor for class org.dihedron.crypto.certificates.impl.FileCertificateLoader
-
- fromAlgorithmAsn1Ids(String, String) - Static method in enum org.dihedron.crypto.constants.SignatureAlgorithm
-
Factory method, returns the enumeration value corresponding to the two
given algorithm descriptions.
- fromAlgorithmDescriptions(String, String) - Static method in enum org.dihedron.crypto.constants.SignatureAlgorithm
-
Factory method, returns the enumeration value corresponding to the two
given algorithm descriptions.
- fromAsn1Id(String) - Static method in enum org.dihedron.crypto.constants.DigestAlgorithm
-
Factory method: returns the Digest object corresponding to the given
algorithm id (in ASN.1 format).
- fromAsn1Id(String) - Static method in enum org.dihedron.crypto.constants.EncryptionAlgorithm
-
Factory method: returns the Encryption object corresponding to the given
ASN.1 algorithm code (e.g.
- fromBouncyCastleCode(String) - Static method in enum org.dihedron.crypto.constants.DigestAlgorithm
-
Factory method: returns the Digest object corresponding to the given
BouncyCastle algorithm id (e.g.
- fromBouncyCastleCode(String) - Static method in enum org.dihedron.crypto.constants.EncryptionAlgorithm
-
Factory method: returns the Encryption object corresponding to the given
BouncyCastle algorithm code (e.g.
- fromBouncyCastleCode(String) - Static method in enum org.dihedron.crypto.constants.SignatureAlgorithm
-
Attempts to translate the BouncyCastle code of a signature algorithm (in
the "SHA1withRSA" format into an enumeration value.
- fromBouncyCastleCodes(String, String) - Static method in enum org.dihedron.crypto.constants.SignatureAlgorithm
-
Factory method, returns the enumeration value corresponding to the two
given algorithm descriptions.
- fromDescription(String) - Static method in enum org.dihedron.crypto.constants.DigestAlgorithm
-
Factory method: returns the Digest object corresponding to the given text
description.
- fromDescription(String) - Static method in enum org.dihedron.crypto.constants.EncryptionAlgorithm
-
Factory method: returns the Encryption object corresponding to the given
text description.
- fromString(String) - Static method in enum org.dihedron.crypto.constants.SignatureFormat
-
Tries to find a SignatureFormat value corresponding to the given
textual description; the comparison is performed case insensitively.
- getAlias() - Method in class org.dihedron.crypto.operations.sign.Signer
-
Returns the alias of the certificate to be used for signing.
- getAsn1Id() - Method in enum org.dihedron.crypto.constants.DigestAlgorithm
-
Returns the numeric (in text form) id of the digest algorithm.
- getAsn1Id() - Method in enum org.dihedron.crypto.constants.EncryptionAlgorithm
-
Returns the numeric (in text form) id of the encryption algorithm.
- getATR() - Method in class org.dihedron.crypto.providers.smartcard.discovery.Reader
-
If a smart card is inserted into the reader, returns its ATR (answer-to-reset)
code.
- getATR() - Method in class org.dihedron.crypto.providers.smartcard.discovery.SmartCard
-
Retrieves the smart card SMARTCARD_ATR.
- getAttributes(Map) - Method in class org.dihedron.crypto.operations.sign.pkcs7.Pkcs7AttributeTableGenerator
-
- getBouncyCastleCode() - Method in enum org.dihedron.crypto.constants.DigestAlgorithm
-
Returns the BouncyCastle code for the given algorithm.
- getBouncyCastleCode() - Method in enum org.dihedron.crypto.constants.EncryptionAlgorithm
-
returns the BouncyCastle code for the given encryption algorithm.
- getCertificate(String) - Method in class org.dihedron.crypto.KeyRing
-
Retrieves the certificate for the given alias.
- getCertificateChain(String) - Method in class org.dihedron.crypto.KeyRing
-
Gets the certificate chain for the given alias.
- getCertificateChainAsArray(String) - Method in class org.dihedron.crypto.KeyRing
-
Gets the certificate chain for the given alias, as an array of Certificates.
- getDescription() - Method in enum org.dihedron.crypto.constants.DigestAlgorithm
-
Returns the text description of the digest algorithm.
- getDescription() - Method in enum org.dihedron.crypto.constants.EncryptionAlgorithm
-
Returns the text description of the encryption algorithm.
- getDescription() - Method in enum org.dihedron.crypto.constants.SignatureFormat
-
Returns the format as a descriptive string.
- getDescription() - Method in class org.dihedron.crypto.providers.smartcard.discovery.Reader
-
Returns a string describing model and make of the smart card reader.
- getDescription() - Method in class org.dihedron.crypto.providers.smartcard.discovery.SmartCard
-
Returns the smart card description.
- getDigestAlgorithm() - Method in enum org.dihedron.crypto.constants.SignatureAlgorithm
-
Returns the algorithm used to hash the data.
- getDriver(Platform) - Method in class org.dihedron.crypto.providers.smartcard.discovery.SmartCard
-
Attempts to find the supporting PKCS#11 driver on disk.
- getEncryptionAlgorithm() - Method in enum org.dihedron.crypto.constants.SignatureAlgorithm
-
Returns the algorithm used to encrypt the hashed data.
- getKeyPair(String, String) - Method in class org.dihedron.crypto.KeyRing
-
Gets a private and public key pair for the
given alias.
- getKeyRing() - Method in class org.dihedron.crypto.operations.sign.Signer
-
Returns the key ring containing the signature key.
- getKeyStore() - Method in class org.dihedron.crypto.KeyRing
-
Deprecated.
- getManufacturer() - Method in class org.dihedron.crypto.providers.smartcard.discovery.SmartCard
-
Returns the smart card manufacturer.
- getPlatform() - Method in class org.dihedron.crypto.providers.smartcard.discovery.Driver
-
Returns the platform on which this driver is supported.
- getPrivateKey(String) - Method in class org.dihedron.crypto.KeyRing
-
Returns the private key (or a proxy) for the given alias.
- getPrivateKey(String, String) - Method in class org.dihedron.crypto.KeyRing
-
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.
- getProvider() - Method in class org.dihedron.crypto.operations.sign.Signer
-
Returns the security provider backing up the key store.
- getPublicKey(String) - Method in class org.dihedron.crypto.KeyRing
-
Returns the public key for the given alias.
- getPublicKey(String, String) - Method in class org.dihedron.crypto.KeyRing
-
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.
- getReader() - Method in class org.dihedron.crypto.providers.smartcard.SmartCardTraits
-
Returns the reader holding the smart card.
- getSignatureKeyAliases() - Method in class org.dihedron.crypto.KeyRing
-
Retrieves a list of aliases corresponding to certificates that bear the
"signature" critical extension OID.
- getSlot() - Method in class org.dihedron.crypto.providers.smartcard.discovery.Reader
-
Returns the slot index assigned to this reader.
- getSmartCard() - Method in class org.dihedron.crypto.providers.smartcard.SmartCardTraits
-
Returns the database entry for the smart card in the reader.
- sign(byte[]) - Method in class org.dihedron.crypto.operations.sign.pdf.PdfSigner
-
- sign(byte[]) - Method in class org.dihedron.crypto.operations.sign.pkcs7.PKCS7Signer
-
- sign(byte[]) - Method in class org.dihedron.crypto.operations.sign.Signer
-
Signs the given set of data.
- SIGNATURE_CRITICAL_EXTENSION_OID - Static variable in class org.dihedron.crypto.KeyRing
-
The critical extension that signature certificates must have in order to
be recognised as valid for signing.
- SignatureAlgorithm - Enum in org.dihedron.crypto.constants
-
- SignatureFormat - Enum in org.dihedron.crypto.constants
-
Signature types.
- Signer - Class in org.dihedron.crypto.operations.sign
-
This class acts as the base class, providing common functionalities, to all
fashions of signers.
- Signer(String, KeyRing, Provider) - Constructor for class org.dihedron.crypto.operations.sign.Signer
-
Constructor.
- SignerFactory - Class in org.dihedron.crypto.operations.sign
-
Factory class for signers; depending on the requested signature format, it
will create the apprropiate signer.
- SignerFactory() - Constructor for class org.dihedron.crypto.operations.sign.SignerFactory
-
- SignerFactory.Type - Enum in org.dihedron.crypto.operations.sign
-
The set of available signer objects.
- SmartCard - Class in org.dihedron.crypto.providers.smartcard.discovery
-
This class represents the smart card information needed to use a given smart
card on a set of supported platforms; the smart card can be identified by
means of its SMARTCARD_ATR (answer to reset) code and is accompanied by a description,
and the name of the manufacturer; each supporting driver (one per platform)
has the name of the PKCS#11 driver library ( a .dll on Windows, a .so on
Linux...) and a series of paths where it should be located.
- SmartCardCallbackHandler - Class in org.dihedron.crypto.providers.smartcard
-
- SmartCardCallbackHandler(String) - Constructor for class org.dihedron.crypto.providers.smartcard.SmartCardCallbackHandler
-
Constructor.
- SmartCardException - Exception in org.dihedron.crypto.exceptions
-
The root of the smart card provider-specific exceptions.
- SmartCardException() - Constructor for exception org.dihedron.crypto.exceptions.SmartCardException
-
Default constructor.
- SmartCardException(String) - Constructor for exception org.dihedron.crypto.exceptions.SmartCardException
-
Constructor.
- SmartCardException(Throwable) - Constructor for exception org.dihedron.crypto.exceptions.SmartCardException
-
Constructor.
- SmartCardException(String, Throwable) - Constructor for exception org.dihedron.crypto.exceptions.SmartCardException
-
Constructor.
- SmartCardKeyRing - Class in org.dihedron.crypto.providers.smartcard
-
- SmartCardKeyRing(Provider, String) - Constructor for class org.dihedron.crypto.providers.smartcard.SmartCardKeyRing
-
Constructor.
- SmartCardProviderFactory - Class in org.dihedron.crypto.providers.smartcard
-
Smart card securoty provider factory class: helps install a security provider
for PKCS#11 providers, once the reader in which the PKCS#11 token is available
has been detected and information about the smart card (in the form of a
SmartCard database entry) has been retrieved.
- SmartCardProviderFactory() - Constructor for class org.dihedron.crypto.providers.smartcard.SmartCardProviderFactory
-
- SMARTCARDS_XSD - Static variable in class org.dihedron.crypto.providers.smartcard.discovery.DataBaseLoader
-
The name of the smart cards database schema.
- SmartCardTraits - Class in org.dihedron.crypto.providers.smartcard
-
The set of characteristics of a smart card based PKCS#11 security provider.
- SmartCardTraits(Reader, SmartCard) - Constructor for class org.dihedron.crypto.providers.smartcard.SmartCardTraits
-
Constructor.
- SmartCardTraits(Reader, SmartCard, boolean) - Constructor for class org.dihedron.crypto.providers.smartcard.SmartCardTraits
-
Constructor.
- valueOf(String) - Static method in enum org.dihedron.crypto.constants.DigestAlgorithm
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dihedron.crypto.constants.EncryptionAlgorithm
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dihedron.crypto.constants.SignatureAlgorithm
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dihedron.crypto.constants.SignatureFormat
-
Returns the enum constant of this type with the specified name.
- valueOf(Traits) - Static method in class org.dihedron.crypto.CryptoLibrary
-
Returns the value of the give trait.
- valueOf(String) - Static method in enum org.dihedron.crypto.operations.sign.pdf.PdfSigner.Mode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.dihedron.crypto.operations.sign.SignerFactory.Type
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.dihedron.crypto.constants.DigestAlgorithm
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dihedron.crypto.constants.EncryptionAlgorithm
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dihedron.crypto.constants.SignatureAlgorithm
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dihedron.crypto.constants.SignatureFormat
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dihedron.crypto.operations.sign.pdf.PdfSigner.Mode
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.dihedron.crypto.operations.sign.SignerFactory.Type
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- verify(byte[]) - Method in class org.dihedron.crypto.operations.sign.pdf.PdfSigner
-
- verify(byte[], byte[]) - Method in class org.dihedron.crypto.operations.sign.pdf.PdfSigner
-
- verify(byte[]) - Method in class org.dihedron.crypto.operations.sign.pkcs7.PKCS7Signer
-
- verify(byte[], byte[]) - Method in class org.dihedron.crypto.operations.sign.pkcs7.PKCS7Signer
-
- verify(byte[]) - Method in class org.dihedron.crypto.operations.sign.Signer
-
Verifies the signature of the given set of encapsulated data.
- verify(byte[], byte[]) - Method in class org.dihedron.crypto.operations.sign.Signer
-
Verifies the signature of the given set of detached data.