public class BasicPasswordCredentials
Basic implementation of PasswordCredentials.
Constructor and description |
---|
BasicPasswordCredentials
() Constructs credentials with null username and password. |
BasicPasswordCredentials
(java.lang.String username, java.lang.String password) Constructs credentials with the given arguments. |
Type | Name and description |
---|---|
java.lang.String |
getPassword() {@inheritDoc} |
java.lang.String |
getUsername() {@inheritDoc} |
void |
setPassword(java.lang.String password) {@inheritDoc} |
void |
setUsername(java.lang.String username) {@inheritDoc} |
Credentials |
toGrgit() Converts to credentials for use in Grgit. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructs credentials with null
username and password.
Constructs credentials with the given arguments.
username
- the username to setpassword
- the password to set{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
{@inheritDoc}
Converts to credentials for use in Grgit.
null
if both username and password are null
,
otherwise returns credentials in Grgit format.