public class UsernamePasswordCredentials extends Object implements Credentials
UsernamePasswordCredentials
represents an USERNAME/PASSWORD credentials.
Only SOCKS5 protocol supports this credentials.Constructor and Description |
---|
UsernamePasswordCredentials(String username,
String password) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getPassword()
Returns password.
|
Principal |
getUserPrincipal()
Returns principal.
|
int |
hashCode() |
String |
toString() |
public Principal getUserPrincipal()
Credentials
getUserPrincipal
in interface Credentials
public String getPassword()
Credentials
getPassword
in interface Credentials
Copyright © 2015. All rights reserved.