Package org.forgerock.services.context
Class ClientContext.Builder
java.lang.Object
org.forgerock.services.context.ClientContext.Builder
- Enclosing class:
- ClientContext
Builder for creating
ClientContext
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates aClientContext
instance from the specified properties.certificates
(Certificate... certificates) Sets the client's certificates.certificates
(List<Certificate> certificates) Sets the client's certificates.localAddress
(String localAddress) Sets the local server's address.localPort
(int localPort) Sets the local server's port.remoteAddress
(String remoteAddress) Sets the client's remote address.remotePort
(int remotePort) Sets the client's remote port.remoteUser
(String remoteUser) Sets the client's remote user.secure
(boolean isSecure) Sets whether if the client connection is secure.Sets the client's user agent.
-
Method Details
-
remoteUser
Sets the client's remote user.- Parameters:
remoteUser
- The remote user.- Returns:
- The builder instance.
-
remoteAddress
Sets the client's remote address.- Parameters:
remoteAddress
- The remove address.- Returns:
- The builder instance.
-
remotePort
Sets the client's remote port.- Parameters:
remotePort
- The remote port.- Returns:
- The builder instance.
-
certificates
Sets the client's certificates.- Parameters:
certificates
- The list of certificates.- Returns:
- The builder instance.
- See Also:
-
certificates
Sets the client's certificates.- Parameters:
certificates
- TheList
of certificates.- Returns:
- The builder instance.
- See Also:
-
userAgent
Sets the client's user agent.- Parameters:
userAgent
- The user agent.- Returns:
- The builder instance.
-
secure
Sets whether if the client connection is secure.- Parameters:
isSecure
-true
if the client connection is secure,false
otherwise.- Returns:
- The builder instance.
-
localAddress
Sets the local server's address.- Parameters:
localAddress
- The local address.- Returns:
- The builder instance.
-
localPort
Sets the local server's port.- Parameters:
localPort
- The local port.- Returns:
- The builder instance.
-
build
Creates aClientContext
instance from the specified properties.- Returns:
- A
ClientContext
instance.
-