Class SigningProviderByPem
java.lang.Object
software.xdev.bzst.dip.client.signing.SigningProviderByPem
- All Implemented Interfaces:
SigningProvider
Provides a certificate and a private key to use in the
XmlSigner by reading two PEM files.
Default algorithm while reading the private key is DEFAULT_PRIVATE_KEY_ALGORITHM.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSigningProviderByPem(String certificatePemFilePath, String privateKeyPemFilePath) Uses the default algorithm while reading the private key:DEFAULT_PRIVATE_KEY_ALGORITHM.SigningProviderByPem(String certificatePemFilePath, String privateKeyPemFilePath, String privateKeyAlgorithm) SigningProviderByPem(Supplier<InputStream> certificatePemInputStream, Supplier<InputStream> privateKeyPemInputStream) Uses the default algorithm while reading the private key:DEFAULT_PRIVATE_KEY_ALGORITHM.SigningProviderByPem(Supplier<InputStream> certificatePemInputStream, Supplier<InputStream> privateKeyPemInputStream, String privateKeyAlgorithm) -
Method Summary
-
Field Details
-
DEFAULT_PRIVATE_KEY_ALGORITHM
- See Also:
-
-
Constructor Details
-
SigningProviderByPem
Uses the default algorithm while reading the private key:DEFAULT_PRIVATE_KEY_ALGORITHM. -
SigningProviderByPem
-
SigningProviderByPem
public SigningProviderByPem(Supplier<InputStream> certificatePemInputStream, Supplier<InputStream> privateKeyPemInputStream) Uses the default algorithm while reading the private key:DEFAULT_PRIVATE_KEY_ALGORITHM. -
SigningProviderByPem
public SigningProviderByPem(Supplier<InputStream> certificatePemInputStream, Supplier<InputStream> privateKeyPemInputStream, String privateKeyAlgorithm)
-
-
Method Details
-
getCertificate
- Specified by:
getCertificatein interfaceSigningProvider
-
getPrivateKey
- Specified by:
getPrivateKeyin interfaceSigningProvider
-