public static final class SignApi.Crypto.X509Certificate extends Object
Modifier and Type | Method and Description |
---|---|
static Optional<SignApi.Crypto.X509Certificate> |
ofPkcs12AndPassword(byte[] pkcs12,
String password)
Gets a certificate object out of the given PCKS12 file and password.
|
Optional<SignApi.Crypto.RsaSignature> |
signHashSha256(byte[] hash)
Signs the hash.
|
public static Optional<SignApi.Crypto.X509Certificate> ofPkcs12AndPassword(byte[] pkcs12, String password)
pkcs12
- The PKCS12 file containing the certificate.password
- The password, if any.public Optional<SignApi.Crypto.RsaSignature> signHashSha256(byte[] hash)
hash
- The result of a SHA-256 digest calculation. 32 octets.Copyright © 2024. All rights reserved.