org.eclipse.jgit.transport.CredentialsProvider that always
uses the same information.
| Access | Constructor and Description |
|---|---|
| public | UsernamePasswordCredentialsProvider(String
user name username, String password password)Initialize the provider with a single username and password. |
| public | UsernamePasswordCredentialsProvider(String
user name username, char[] password password)Initialize the provider with a single username and password. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | get(URIish
the URI of the remote resource that needs authentication. uri, CredentialItem... the items the application requires to complete authentication. items)Implements abstract org. Ask for the credential items to be populated. |
| public boolean | isInteractive()
Implements abstract org. Check if the provider is interactive with the end-user. |
| public boolean | supports(CredentialItem...
the items the application requires to complete authentication. items)Implements abstract org. Check if the provider can supply the necessary
|
| password | back to summary |
|---|---|
| private char[] password | |
| username | back to summary |
|---|---|
| private String username | |
| UsernamePasswordCredentialsProvider | back to summary |
|---|---|
| public UsernamePasswordCredentialsProvider(String username, String password) Initialize the provider with a single username and password. | |
| UsernamePasswordCredentialsProvider | back to summary |
|---|---|
| public UsernamePasswordCredentialsProvider(String username, char[] password) Initialize the provider with a single username and password.
| |
| clear | back to summary |
|---|---|
| public void clear() Destroy the saved username and password.. | |
| get | back to summary |
|---|---|
| public boolean get(URIish uri, CredentialItem... items) throws UnsupportedCredentialItem Implements abstract org. Doc from org. Ask for the credential items to be populated.
| |
| isInteractive | back to summary |
|---|---|
| public boolean isInteractive() Implements abstract org. Doc from org. Check 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.
| |
| supports | back to summary |
|---|---|
| public boolean supports(CredentialItem... items) Implements abstract org. Doc from org. Check if the provider can supply the necessary
| |