public class ConnectionContext extends AbstractDJContext
Modifier and Type | Field and Description |
---|---|
static String |
CONNECTION_CONTEXT_NAME
The name of this context.
|
Constructor and Description |
---|
ConnectionContext(ClientConnection clientConnection,
org.forgerock.services.context.Context parent)
Creates a new client context with a parent context.
|
Modifier and Type | Method and Description |
---|---|
AuthenticationInfo |
getAuthenticationInfo()
Returns the authentication info to use for this connection context.
|
ClientConnection |
getClientConnection()
Returns the client connection.
|
String |
getContextName() |
long |
getMaxBlockedWriteTimeLimit()
Retrieves the maximum length of time in milliseconds that attempts to write data to the client
should be allowed to block.
|
String |
getProtocol()
Returns the protocol that the client is using to communicate with the Directory Server.
|
InetAddress |
getRemoteAddress()
Returns the
java.net.InetAddress associated with the remote client system. |
int |
getServerPort()
Returns the port number for this connection on the server system if available.
|
int |
getSsf()
Returns the cipher strength, in bits, currently in use by the underlying connection.
|
void |
setAuthenticationInfo(AuthenticationInfo authenticationInfo)
Sets the authentication info to use for this connection context.
|
asContext, containsContext, containsContext, getContext, getId, getParent, isRootContext, toJsonValue, toString
public static final String CONNECTION_CONTEXT_NAME
public ConnectionContext(ClientConnection clientConnection, org.forgerock.services.context.Context parent)
clientConnection
- The client connection.parent
- The parent context.public String getContextName()
public ClientConnection getClientConnection()
public AuthenticationInfo getAuthenticationInfo()
null
public String getProtocol()
public InetAddress getRemoteAddress()
java.net.InetAddress
associated with the remote client system.java.net.InetAddress
associated with the remote client system. It may be null
if the
client is not connected over an IP-based connection.public int getServerPort()
public int getSsf()
public void setAuthenticationInfo(AuthenticationInfo authenticationInfo)
authenticationInfo
- the authentication info. If null
, then an authentication info suitable for
anonymous users will be created.public long getMaxBlockedWriteTimeLimit()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.