Class SshTestHarness.TestCredentialsProvider
java.lang.Object
org.eclipse.jgit.transport.CredentialsProvider
org.eclipse.jgit.junit.ssh.SshTestHarness.TestCredentialsProvider
- Enclosing class:
SshTestHarness
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanget(URIish uri, CredentialItem... items) Ask for the credential items to be populated.getLog()booleanCheck if the provider is interactive with the end-user.private voidlogItems(URIish uri, CredentialItem... items) booleansupports(CredentialItem... items) Check if the provider can supply the necessaryCredentialItems.Methods inherited from class CredentialsProvider
get, getDefault, isAnyNull, reset, setDefault
-
Field Details
-
stringStore
-
strings
-
log
-
-
Constructor Details
-
TestCredentialsProvider
-
-
Method Details
-
isInteractive
public boolean isInteractive()Description copied from class:CredentialsProviderCheck if the provider is interactive with the end-user. An interactive provider may try to open a dialog box, or prompt for input on the terminal, and will wait for a user response. A non-interactive provider will either populate CredentialItems, or fail.- Specified by:
isInteractivein classCredentialsProvider- Returns:
trueif the provider is interactive with the end-user.
-
supports
Description copied from class:CredentialsProviderCheck if the provider can supply the necessaryCredentialItems.- Specified by:
supportsin classCredentialsProvider- Parameters:
items- the items the application requires to complete authentication.- Returns:
trueif thisCredentialsProvidersupports all of the items supplied.
-
get
Description copied from class:CredentialsProviderAsk for the credential items to be populated.- Specified by:
getin classCredentialsProvider- Parameters:
uri- the URI of the remote resource that needs authentication.items- the items the application requires to complete authentication.- Returns:
trueif the request was successful and values were supplied;falseif the user canceled the request and did not supply all requested values.- Throws:
UnsupportedCredentialItem- if one of the items supplied is not supported.
-
logItems
-
getLog
-