| Package | Description |
|---|---|
| org.dihedron.crypto.constants |
The package containing the definition of common constants.
|
| org.dihedron.crypto.operations.sign | |
| org.dihedron.crypto.operations.sign.pkcs7 |
The package containing the implementation of the CMS/PKCS#7 signer.
|
| Modifier and Type | Method and Description |
|---|---|
static SignatureAlgorithm |
SignatureAlgorithm.fromAlgorithmAsn1Ids(String digestAlgorithm,
String encryptionAlgorithm)
Factory method, returns the enumeration value corresponding to the two
given algorithm descriptions.
|
static SignatureAlgorithm |
SignatureAlgorithm.fromAlgorithmDescriptions(String digestAlgorithm,
String encryptionAlgorithm)
Factory method, returns the enumeration value corresponding to the two
given algorithm descriptions.
|
static SignatureAlgorithm |
SignatureAlgorithm.fromBouncyCastleCode(String bcCode)
Attempts to translate the BouncyCastle code of a signature algorithm (in
the "SHA1withRSA" format into an enumeration value.
|
static SignatureAlgorithm |
SignatureAlgorithm.fromBouncyCastleCodes(String digestAlgorithm,
String encryptionAlgorithm)
Factory method, returns the enumeration value corresponding to the two
given algorithm descriptions.
|
static SignatureAlgorithm |
SignatureAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SignatureAlgorithm[] |
SignatureAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Field and Description |
|---|---|
protected SignatureAlgorithm |
SigningStreamConfigurator.algorithm
The digest and encryption algorithm combination used to create the signature.
|
| Modifier and Type | Method and Description |
|---|---|
SignatureAlgorithm |
SigningStreamConfigurator.getAlgorithm()
Returns the value of the algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
static Signer |
SignerFactory.makeSigner(EnvelopeFormat format,
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.
|
SigningStreamConfigurator |
SigningStreamConfigurator.setAlgorithm(SignatureAlgorithm algorithm)
Sets the new value of the algorithm.
|
| Constructor and Description |
|---|
PKCS7Signer(String alias,
KeyRing keyring,
Provider provider,
SignatureAlgorithm algorithm)
Constructor.
|
Copyright © 2012-2014 Andrea Funtò. See here for terms and conditions.