public abstract class GenericCredentials<T> extends Object implements Credentials
Modifier and Type | Field and Description |
---|---|
protected Credentials |
credentials |
Modifier | Constructor and Description |
---|---|
protected |
GenericCredentials(ServiceProvider provider) |
Modifier and Type | Method and Description |
---|---|
Credentials |
getCredentials() |
String |
serialize() |
void |
setCredentials(Credentials credentials) |
T |
withHost(String host) |
T |
withPassword(String password) |
T |
withProxy(String proxy) |
T |
withToken(String token) |
T |
withUsername(String username) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isNullOrEmpty
protected Credentials credentials
protected GenericCredentials(ServiceProvider provider)
public String serialize()
serialize
in interface Credentials
public Credentials getCredentials()
public void setCredentials(Credentials credentials)
Copyright © 2016. All rights reserved.