public interface GerritAuthData
GerritAuthData.Basic is what you need.
You can create your own implementation when you for example want to access
application settings dynamically (after setting up the REST client).| Modifier and Type | Interface and Description |
|---|---|
static class |
GerritAuthData.Basic
A simple implementation for providing username and password at
construction time.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
HTTP URL for accessing Gerrit.
|
String |
getLogin()
Username used for login.
|
String |
getPassword()
Password used for login.
|
boolean |
isHttpPassword()
Returns TRUE if the password value is an HTTP password corresponding to
the password token displayed on the user Settings -> HTTP Password page.
|
boolean |
isLoginAndPasswordAvailable() |
String getLogin()
String getPassword()
boolean isHttpPassword()
String getHost()
"https://gerrit-review.googlesource.com"boolean isLoginAndPasswordAvailable()
Copyright © 2018. All rights reserved.