public class NetRCCredentialsProvider extends CredentialsProvider
| Constructor and Description |
|---|
NetRCCredentialsProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
get(URIish uri,
CredentialItem... items)
Ask for the credential items to be populated.
|
static void |
install()
Install default provider for the .netrc parser.
|
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, reset, setDefaultpublic static void install()
public boolean supports(CredentialItem... items)
CredentialsProviderCredentialItems.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
CredentialsProviderget 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.public boolean isInteractive()
CredentialsProviderisInteractive in class CredentialsProvidertrue if the provider is interactive with the end-user.Copyright © 2014. All rights reserved.