Interface ConnectionPeer

    • Method Detail

      • getRemoteAddr

        java.net.SocketAddress getRemoteAddr()
        Address from which originated the connection.
        Returns:
      • getProtocolPrincipals

        java.util.Collection<java.lang.Object> getProtocolPrincipals()
        Additional principals bound to the connection, like TLS certificates.
        Returns:
      • disconnect

        void disconnect()
        Utility function to be used from AuthProviders to drop the connection.
      • setAuthorizedId

        void setAuthorizedId​(BookKeeperPrincipal principal)
        Assign a principal to the current connection.
        Parameters:
        principal - the id of the user
        See Also:
        getAuthorizedId()
      • isSecure

        boolean isSecure()
        This flag returns true if a 'secure' channel in use, like TLS.
        Returns:
        true if the channel is 'secure'