Interface LdapSocket
- All Superinterfaces:
- AutoCloseable,- Closeable,- RxSocket<LdapMessage>
 Support for StartTLS is provided through the usage of StartTlsExtendedRequest. Support for SASL quality of
 protection is provided through the usage of BindRequest.
- 
Field SummaryFields inherited from interface org.forgerock.opendj.io.RxSocketLOCAL_CLOSE, REMOTE_CLOSE
- 
Method SummaryModifier and TypeMethodDescriptionReturns the proxy protocol header sent by the client, ornullif proxy protocol is not enabled.getSaslNegotiatedProperty(String property) Returns the specified SASL negotiated property if this socket is using SASL QOP to protect the underlying communication.Returns the SSL session currently in use by the underlying connection, ornullif SSL/TLS is not enabled.default Flowable<LdapMessage>read()Returns a "cold"Flowablerepresenting the stream of LDAP messages read from the network.Methods inherited from interface org.forgerock.opendj.io.RxSocketclose, closeWithReason, getLocalAddress, getRemoteAddress, read, write
- 
Method Details- 
readReturns a "cold"Flowablerepresenting the stream of LDAP messages read from the network.Incoming messages will be buffered until they are read. Note that invoking this method multiple times returns the same Flowableinstance. The returnedFlowablewill not allow multiple concurrent subscriptions as this will result in non-deterministic behavior. Attempts to have multiple concurrent subscriptions will result in anIllegalStateException.Subscribers will be notified when the socket is closed through Subscriber.onError(Throwable)with the correspondingIOExceptionproviding the reason for the disconnection. In particular, if the socket is closed locally viaRxSocket.close()then it will be notified withRxSocket.LOCAL_CLOSE, if it is closed locally viaRxSocket.closeWithReason(java.lang.Throwable)then it will be notified using the provided exception and finally, if it is closed remotely by the peer, then it will be notified usingRxSocket.REMOTE_CLOSE.- Returns:
- A "cold" Flowablerepresenting the stream of LDAP messages read from the network.
 
- 
getSslSessionSSLSession getSslSession()Returns the SSL session currently in use by the underlying connection, ornullif SSL/TLS is not enabled.- Returns:
- The SSL session currently in use by the underlying connection, or nullif SSL/TLS is not enabled.
 
- 
getSaslNegotiatedPropertyReturns the specified SASL negotiated property if this socket is using SASL QOP to protect the underlying communication.- Parameters:
- property- The SASL negotiated property name.
- Returns:
- The value of the SASL negotiated property, or nullif SASL QOP is not active or if the property was not negotiated or is not applicable to this mechanism.
 
- 
getProxyProtocolHeaderProxyProtocolHeader getProxyProtocolHeader()Returns the proxy protocol header sent by the client, ornullif proxy protocol is not enabled.- Returns:
- The proxy protocol header sent by the client, or nullif proxy protocol is not enabled.
 
 
-