Package org.whitesource.scm
Class passphraseCredentialsProvider
- java.lang.Object
-
- org.eclipse.jgit.transport.CredentialsProvider
-
- org.whitesource.scm.passphraseCredentialsProvider
-
public class passphraseCredentialsProvider extends org.eclipse.jgit.transport.CredentialsProviderCredentialsProviderthat holds passphrase for SSH connection. Implementation taken fromUsernamePasswordCredentialsProviderand modified to support SSH connections.
-
-
Constructor Summary
Constructors Constructor Description passphraseCredentialsProvider(char[] password)Initialize the provider with a single username and password.passphraseCredentialsProvider(java.lang.String password)Initialize the provider with a single username and password.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Destroy the saved username and password..booleanget(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialItem... items)booleanisInteractive()booleansupports(org.eclipse.jgit.transport.CredentialItem... items)
-
-
-
Constructor Detail
-
passphraseCredentialsProvider
public passphraseCredentialsProvider(java.lang.String password)
Initialize the provider with a single username and password.- Parameters:
password- password according to credentials provider
-
passphraseCredentialsProvider
public passphraseCredentialsProvider(char[] password)
Initialize the provider with a single username and password.- Parameters:
password- password according to credentials provider
-
-
Method Detail
-
isInteractive
public boolean isInteractive()
- Specified by:
isInteractivein classorg.eclipse.jgit.transport.CredentialsProvider
-
supports
public boolean supports(org.eclipse.jgit.transport.CredentialItem... items)
- Specified by:
supportsin classorg.eclipse.jgit.transport.CredentialsProvider
-
get
public boolean get(org.eclipse.jgit.transport.URIish uri, org.eclipse.jgit.transport.CredentialItem... items) throws org.eclipse.jgit.errors.UnsupportedCredentialItem- Specified by:
getin classorg.eclipse.jgit.transport.CredentialsProvider- Throws:
org.eclipse.jgit.errors.UnsupportedCredentialItem
-
clear
public void clear()
Destroy the saved username and password..
-
-