cleared.
Implements AutoCloseable so it can be used within a
try-with-resources block.
| Modifier and Type | Field and Description |
|---|---|
| private CredentialsProvider | |
| private CredentialItem. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| private URIish | |
| public char[] | Returns: the passphrase (maybenull)the fingerprint to show to the user during prompting keyFingerprint, Path the location the key was loaded from keyLocation)Prompts use for a passphrase unless one was cached from a previous prompt. |
| public boolean | Returns: true if a passphrase is already set, false
otherwiseDetermines whether a passphrase was already obtained. |
| credentialsProvider | back to summary |
|---|---|
| private CredentialsProvider credentialsProvider | |
| passphrase | back to summary |
|---|---|
| private CredentialItem. | |
| BouncyCastleGpgKeyPassphrasePrompt | back to summary |
|---|---|
| public BouncyCastleGpgKeyPassphrasePrompt(CredentialsProvider credentialsProvider) | |
| clear | back to summary |
|---|---|
| public void clear() Clears any cached passphrase | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| createURI | back to summary |
|---|---|
| private URIish createURI(Path keyLocation) throws URISyntaxException | |
| getPassphrase | back to summary |
|---|---|
| public char[] getPassphrase(byte[] keyFingerprint, Path keyLocation) throws PGPException, CanceledException, UnsupportedCredentialItem, URISyntaxException Prompts use for a passphrase unless one was cached from a previous prompt.
| |
| hasPassphrase | back to summary |
|---|---|
| public boolean hasPassphrase() Determines whether a passphrase was already obtained.
| |