public static final class ClientContext.Builder extends Object
ClientContext instances.| Modifier and Type | Method and Description |
|---|---|
ClientContext |
build()
Creates a
ClientContext instance from the specified properties. |
ClientContext.Builder |
certificates(Certificate... certificates)
Sets the client's certificates.
|
ClientContext.Builder |
certificates(List<Certificate> certificates)
Sets the client's certificates.
|
ClientContext.Builder |
localAddress(String localAddress)
Sets the local server's address.
|
ClientContext.Builder |
localPort(int localPort)
Sets the local server's port.
|
ClientContext.Builder |
remoteAddress(String remoteAddress)
Sets the client's remote address.
|
ClientContext.Builder |
remotePort(int remotePort)
Sets the client's remote port.
|
ClientContext.Builder |
remoteUser(String remoteUser)
Sets the client's remote user.
|
ClientContext.Builder |
secure(boolean isSecure)
Sets whether if the client connection is secure.
|
ClientContext.Builder |
userAgent(String userAgent)
Sets the client's user agent.
|
public ClientContext.Builder remoteUser(String remoteUser)
remoteUser - The remote user.public ClientContext.Builder remoteAddress(String remoteAddress)
remoteAddress - The remove address.public ClientContext.Builder remotePort(int remotePort)
remotePort - The remote port.public ClientContext.Builder certificates(Certificate... certificates)
certificates - The list of certificates.certificates(List)public ClientContext.Builder certificates(List<Certificate> certificates)
certificates - The List of certificates.certificates(Certificate...)public ClientContext.Builder userAgent(String userAgent)
userAgent - The user agent.public ClientContext.Builder secure(boolean isSecure)
isSecure - true if the client connection is secure, false otherwise.public ClientContext.Builder localAddress(String localAddress)
localAddress - The local address.public ClientContext.Builder localPort(int localPort)
localPort - The local port.public ClientContext build()
ClientContext instance from the specified properties.ClientContext instance.Copyright © 2025 Open Identity Platform Community. All rights reserved.