Class IdentClient


  • public class IdentClient
    extends java.lang.Object
    Simple IDENT client. Follow the RFC 1413.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int CONNECT_TIMEOUT
      The timeout while attempting to connect to the Ident server.
      private java.lang.String hostType
      The remote host type.
      private static int SO_TIMEOUT
      The timeout while communicating with the Ident server.
      private java.lang.String userIdentifier
      The user identifier.
    • Constructor Summary

      Constructors 
      Constructor Description
      IdentClient​(java.lang.String clientAddress, int clientPort, int serverPort)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHostType()
      Returns the remote host type.
      java.lang.String getUserIdentifier()
      Returns the user identifier.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CONNECT_TIMEOUT

        private static final int CONNECT_TIMEOUT
        The timeout while attempting to connect to the Ident server.
        See Also:
        Constant Field Values
      • SO_TIMEOUT

        private static final int SO_TIMEOUT
        The timeout while communicating with the Ident server.
        See Also:
        Constant Field Values
      • hostType

        private volatile java.lang.String hostType
        The remote host type.
      • userIdentifier

        private volatile java.lang.String userIdentifier
        The user identifier.
    • Constructor Detail

      • IdentClient

        public IdentClient​(java.lang.String clientAddress,
                           int clientPort,
                           int serverPort)
        Constructor.
        Parameters:
        clientAddress - The client IP address.
        clientPort - The client port (remote).
        serverPort - The server port (local).
    • Method Detail

      • getHostType

        public java.lang.String getHostType()
        Returns the remote host type.
        Returns:
        The remote host type.
      • getUserIdentifier

        public java.lang.String getUserIdentifier()
        Returns the user identifier.
        Returns:
        The user identifier.