| Modifier and Type | Field and Description |
|---|---|
| private OperatorHelper | |
| private static final Set | |
| private SecureRandom | |
| private AlgorithmIdentifier | |
| private AlgorithmParameterSpec | |
| private static final DefaultSignatureAlgorithmIdentifierFinder | |
| private final String | |
| private final AlgorithmIdentifier |
| Access | Constructor and Description |
|---|---|
| public | JcaContentSignerBuilder(String
the signature algorithm we perform. signatureAlgorithm)Construct a basic content signer where the signature algorithm name tells us all we need to know. |
| public | JcaContentSignerBuilder(String
the signature algorithm we perform. signatureAlgorithm, PublicKey the public key associated with our private key. verificationKey)Constructor which calculates the digest algorithm used from the public key, if necessary. |
| public | JcaContentSignerBuilder(String
the signature algorithm we perform. signatureAlgorithm, AlgorithmIdentifier the public key associated with our private key. signatureDigestAlgorithmID)Constructor which includes the digest algorithm identifier used. |
| public | |
| public | JcaContentSignerBuilder(String signatureAlgorithm, AlgorithmParameterSpec sigParamSpec, AlgorithmIdentifier signatureDigestAlgorithmID)
|
| Modifier and Type | Method and Description |
|---|---|
| public ContentSigner | |
| private ContentSigner | |
| private static ASN1Sequence | |
| private static RSASSAPSSparams | |
| private AlgorithmIdentifier | |
| private static AlgorithmIdentifier | |
| public JcaContentSignerBuilder | |
| public JcaContentSignerBuilder | |
| public JcaContentSignerBuilder |
| helper | back to summary |
|---|---|
| private OperatorHelper helper | |
| isAlgIdFromPrivate | back to summary |
|---|---|
| private static final Set<E> isAlgIdFromPrivate | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| sigAlgId | back to summary |
|---|---|
| private AlgorithmIdentifier sigAlgId | |
| sigAlgSpec | back to summary |
|---|---|
| private AlgorithmParameterSpec sigAlgSpec | |
| SIGNATURE_ALGORITHM_IDENTIFIER_FINDER | back to summary |
|---|---|
| private static final DefaultSignatureAlgorithmIdentifierFinder SIGNATURE_ALGORITHM_IDENTIFIER_FINDER | |
| signatureAlgorithm | back to summary |
|---|---|
| private final String signatureAlgorithm | |
| signatureDigestAlgorithm | back to summary |
|---|---|
| private final AlgorithmIdentifier signatureDigestAlgorithm | |
| JcaContentSignerBuilder | back to summary |
|---|---|
| public JcaContentSignerBuilder(String signatureAlgorithm) Construct a basic content signer where the signature algorithm name tells us all we need to know.
| |
| JcaContentSignerBuilder | back to summary |
|---|---|
| public JcaContentSignerBuilder(String signatureAlgorithm, PublicKey verificationKey) Constructor which calculates the digest algorithm used from the public key, if necessary. Some PKIX operations, such as CMS signing, require the digest algorithm used for in the signature. Some algorithms, such as LMS, use different digests with different parameter sets but the same OID is used to represent the signature. In this case we either need to be told what digest is associated with the parameter set, or we need the public key so we can work it out. | |
| JcaContentSignerBuilder | back to summary |
|---|---|
| public JcaContentSignerBuilder(String signatureAlgorithm, AlgorithmIdentifier signatureDigestAlgorithmID) Constructor which includes the digest algorithm identifier used. Some PKIX operations, such as CMS signing, require the digest algorithm used for in the signature, this constructor allows the digest algorithm identifier to be explicitly specified.
| |
| JcaContentSignerBuilder | back to summary |
|---|---|
| public JcaContentSignerBuilder(String signatureAlgorithm, AlgorithmParameterSpec sigParamSpec) | |
| JcaContentSignerBuilder | back to summary |
|---|---|
| public JcaContentSignerBuilder(String signatureAlgorithm, AlgorithmParameterSpec sigParamSpec, AlgorithmIdentifier signatureDigestAlgorithmID) | |
| build | back to summary |
|---|---|
| public ContentSigner build(PrivateKey privateKey) throws OperatorCreationException | |
| buildComposite | back to summary |
|---|---|
| private ContentSigner buildComposite(CompositePrivateKey privateKey) throws OperatorCreationException | |
| createCompParams | back to summary |
|---|---|
| private static ASN1Sequence createCompParams(CompositeAlgorithmSpec compSpec) | |
| createPSSParams | back to summary |
|---|---|
| private static RSASSAPSSparams createPSSParams(PSSParameterSpec pssSpec) | |
| getSigAlgId | back to summary |
|---|---|
| private AlgorithmIdentifier getSigAlgId(PrivateKey privateKey) | |
| getSigDigAlgId | back to summary |
|---|---|
| private static AlgorithmIdentifier getSigDigAlgId(PublicKey publicKey) | |
| setProvider | back to summary |
|---|---|
| public JcaContentSignerBuilder setProvider(Provider provider) | |
| setProvider | back to summary |
|---|---|
| public JcaContentSignerBuilder setProvider(String providerName) | |
| setSecureRandom | back to summary |
|---|---|
| public JcaContentSignerBuilder setSecureRandom(SecureRandom random) | |