public class PgpKeystore extends Object
| Constructor and Description |
|---|
PgpKeystore(String publicKeyring,
String privateKeyring) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.openpgp.PGPPrivateKey |
decryptPrivateKey(Long fingerprint) |
org.bouncycastle.openpgp.PGPPrivateKey |
decryptPrivateKey(Long fingerprint,
Optional<String> passphrase) |
Long |
getFingerprintFromIdentifier(PgpAsymmetricKeyIdentifier keyIdentifier) |
Long |
getFingerprintFromPrincipal(String principal)
Retrieves the fingerprint whose corresponding principal is the provided one.
|
String |
getPrincipalFromFingerprint(Long fingerprint)
Retrieves the principal whose corresponding fingerprint is the provided one.
|
org.bouncycastle.openpgp.PGPSecretKey |
getPrivateKey(Long fingerprint) |
org.bouncycastle.openpgp.PGPPublicKey |
getPublicKey(Long fingerprint) |
boolean |
hasPrivateKey(Long fingerprint) |
void |
registerPassphrase(Long fingerprint,
String passphrase) |
public String getPrincipalFromFingerprint(Long fingerprint)
fingerprint - public Long getFingerprintFromPrincipal(String principal)
principal - public Long getFingerprintFromIdentifier(PgpAsymmetricKeyIdentifier keyIdentifier)
public org.bouncycastle.openpgp.PGPPublicKey getPublicKey(Long fingerprint)
public boolean hasPrivateKey(Long fingerprint)
public org.bouncycastle.openpgp.PGPSecretKey getPrivateKey(Long fingerprint)
public org.bouncycastle.openpgp.PGPPrivateKey decryptPrivateKey(Long fingerprint, Optional<String> passphrase)
public org.bouncycastle.openpgp.PGPPrivateKey decryptPrivateKey(Long fingerprint)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.