public class PgpKeystore extends Object
| Modifier and Type | Field and Description |
|---|---|
static Object |
KEY_FINGERPRINT_CALCULATOR |
| Constructor and Description |
|---|
PgpKeystore(String publicKeyring,
String privateKeyring) |
| Modifier and Type | Method and Description |
|---|---|
Object |
decryptPrivateKey(Long fingerprint) |
Object |
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.
|
Object |
getPrivateKey(Long fingerprint) |
Object |
getPublicKey(Long fingerprint) |
boolean |
hasPrivateKey(Long fingerprint) |
void |
registerPassphrase(Long fingerprint,
String passphrase) |
public static final Object KEY_FINGERPRINT_CALCULATOR
public String getPrincipalFromFingerprint(Long fingerprint)
fingerprint - the fingerprint to usepublic Long getFingerprintFromPrincipal(String principal)
principal - public Long getFingerprintFromIdentifier(PgpAsymmetricKeyIdentifier keyIdentifier)
public boolean hasPrivateKey(Long fingerprint)
Copyright © 2025 MuleSoft, Inc.. All rights reserved.