public class passphraseCredentialsProvider
extends org.eclipse.jgit.transport.CredentialsProvider
CredentialsProvider that holds passphrase for SSH connection.
Implementation taken from UsernamePasswordCredentialsProvider and modified
to support SSH connections.| Constructor and Description |
|---|
passphraseCredentialsProvider(char[] password)
Initialize the provider with a single username and password.
|
passphraseCredentialsProvider(String password)
Initialize the provider with a single username and password.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Destroy the saved username and password..
|
boolean |
get(org.eclipse.jgit.transport.URIish uri,
org.eclipse.jgit.transport.CredentialItem... items) |
boolean |
isInteractive() |
boolean |
supports(org.eclipse.jgit.transport.CredentialItem... items) |
public passphraseCredentialsProvider(String password)
password - password according to credentials providerpublic passphraseCredentialsProvider(char[] password)
password - password according to credentials providerpublic 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.CredentialsProviderorg.eclipse.jgit.errors.UnsupportedCredentialItempublic void clear()
Copyright © 2014–2020 Checkmarx. All rights reserved.