| | |
| | | // The string representation of the address of the client. |
| | | private String clientAddress; |
| | | |
| | | // The name of the protocol that the client is using to communicate with the |
| | | // server. |
| | | private String protocol; |
| | | |
| | | // The string representation of the address of the server to which the client |
| | | // has connected. |
| | | private String serverAddress; |
| | |
| | | disconnectRequested = false; |
| | | operationsInProgress = new ConcurrentHashMap<Integer,Operation>(); |
| | | keepStats = connectionHandler.keepStats(); |
| | | protocol = "LDAP"; |
| | | |
| | | clientAddress = clientChannel.socket().getInetAddress().getHostAddress(); |
| | | clientPort = clientChannel.socket().getPort(); |
| | |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getProtocol"); |
| | | |
| | | // FIXME -- what if it is a secure connection? And what if it is secure now |
| | | // but wasn't when it was established? |
| | | return "LDAP"; |
| | | return protocol; |
| | | } |
| | | |
| | | |
| | |
| | | String.valueOf(securityProvider)); |
| | | |
| | | this.securityProvider = securityProvider; |
| | | |
| | | if (securityProvider.isSecure()) |
| | | { |
| | | protocol = "LDAP+" + securityProvider.getSecurityMechanismName(); |
| | | } |
| | | else |
| | | { |
| | | protocol = "LDAP"; |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public String getMonitorSummary() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getMonitorSummary"); |
| | | |
| | | StringBuilder buffer = new StringBuilder(); |
| | | buffer.append("connID=\""); |
| | | buffer.append(connectionID); |
| | | buffer.append("\" connectTime=\""); |
| | | buffer.append(getConnectTimeString()); |
| | | buffer.append("\" source=\""); |
| | | buffer.append(clientAddress); |
| | | buffer.append(":"); |
| | | buffer.append(clientPort); |
| | | buffer.append("\" destination=\""); |
| | | buffer.append(serverAddress); |
| | | buffer.append(":"); |
| | | buffer.append(connectionHandler.getListenPort()); |
| | | buffer.append("\" ldapVersion=\""); |
| | | buffer.append(ldapVersion); |
| | | buffer.append("\" authDN=\""); |
| | | |
| | | DN authDN = getAuthenticationInfo().getAuthenticationDN(); |
| | | if (authDN != null) |
| | | { |
| | | authDN.toString(buffer); |
| | | } |
| | | |
| | | buffer.append("\" security=\""); |
| | | if (securityProvider.isSecure()) |
| | | { |
| | | buffer.append(securityProvider.getSecurityMechanismName()); |
| | | } |
| | | else |
| | | { |
| | | buffer.append("none"); |
| | | } |
| | | |
| | | buffer.append("\" opsInProgress=\""); |
| | | buffer.append(operationsInProgress.size()); |
| | | buffer.append("\""); |
| | | |
| | | return buffer.toString(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Appends a string representation of this client connection to the provided |
| | | * buffer. |
| | | * |
| | |
| | | } |
| | | |
| | | clearSecurityProvider = securityProvider; |
| | | securityProvider = tlsSecurityProvider; |
| | | setConnectionSecurityProvider(tlsSecurityProvider); |
| | | } |
| | | |
| | | |