public class PassphraseCredentialsProvider
extends org.eclipse.jgit.transport.CredentialsProvider
CredentialsProvider that uses a passphrase.| Modifier and Type | Field and Description |
|---|---|
static String |
PROMPT
Prompt to skip iteration for.
|
| Constructor and Description |
|---|
PassphraseCredentialsProvider(String passphrase)
Initialize the provider with a the ssh passphrase.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
get(org.eclipse.jgit.transport.URIish uri,
org.eclipse.jgit.transport.CredentialItem... items)
Ask for the credential items to be populated with the passphrase.
|
boolean |
isInteractive() |
boolean |
supports(org.eclipse.jgit.transport.CredentialItem... items) |
public static final String PROMPT
public PassphraseCredentialsProvider(String passphrase)
passphrase - passphrase to populate the credential items withpublic boolean isInteractive()
isInteractive in class org.eclipse.jgit.transport.CredentialsProviderpublic boolean supports(org.eclipse.jgit.transport.CredentialItem... items)
supports in class org.eclipse.jgit.transport.CredentialsProviderpublic boolean get(org.eclipse.jgit.transport.URIish uri,
org.eclipse.jgit.transport.CredentialItem... items)
throws org.eclipse.jgit.errors.UnsupportedCredentialItem
get in class org.eclipse.jgit.transport.CredentialsProvideruri - the URI of the remote resource that needs authentication.items - the items the application requires to complete authentication.true if the request was successful and values were supplied;
false if the user canceled the request and did not supply all requested
values.org.eclipse.jgit.errors.UnsupportedCredentialItem - if one of the items supplied is not supported.Copyright © 2022 Pivotal Software, Inc.. All rights reserved.