Package org.microproxy
Class ClientDetails
java.lang.Object
org.microproxy.ClientDetails
What the proxy knows about a client: its address and, once authenticated, its user name.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates client details with no address or authenticated user yet. -
Method Summary
Modifier and TypeMethodDescriptionReturns the client socket address.Returns the authenticated user name, ornull.voidsetClientAddress(InetSocketAddress clientAddress) Sets the client socket address.voidsetUserName(String userName) Sets the authenticated user name.
-
Constructor Details
-
ClientDetails
public ClientDetails()Creates client details with no address or authenticated user yet.
-
-
Method Details
-
getUserName
Returns the authenticated user name, ornull.- Returns:
- the authenticated user name, or
null
-
setUserName
Sets the authenticated user name.- Parameters:
userName- the authenticated user name, ornullif unknown
-
getClientAddress
Returns the client socket address.- Returns:
- the client socket address
-
setClientAddress
Sets the client socket address.- Parameters:
clientAddress- the client socket address
-