public class ChainingCredentialsProvider extends CredentialsProvider
| Constructor and Description |
|---|
ChainingCredentialsProvider(CredentialsProvider... providers)
Create a new chaining credential provider.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
get(URIish uri,
CredentialItem... items)
Ask for the credential items to be populated.
|
boolean |
isInteractive()
Check if the provider is interactive with the end-user.
|
boolean |
supports(CredentialItem... items)
Check if the provider can supply the necessary
CredentialItems. |
get, getDefault, isAnyNull, reset, setDefaultpublic ChainingCredentialsProvider(CredentialsProvider... providers)
providers - credential providers asked for credentials in the order given
herepublic boolean isInteractive()
isInteractive in class CredentialsProvidertrue if the provider is interactive with the end-user.public boolean supports(CredentialItem... items)
CredentialItems.supports in class CredentialsProvideritems - the items the application requires to complete authentication.true if this
CredentialsProvider supports
all of the items supplied.public boolean get(URIish uri, CredentialItem... items) throws UnsupportedCredentialItem
Populates the credential items with the credentials provided by the first credential provider in the list which populates them with non-null values
get in class 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.UnsupportedCredentialItem - if one of the items supplied is not supported.CredentialsProvider.supports(org.eclipse.jgit.transport.CredentialItem[])Copyright © 2018 Eclipse JGit Project. All rights reserved.