Interface KrbTransport

All Known Implementing Classes:
AbstractKrbTransport, KdcUdpTransport, KrbTcpTransport, KrbUdpTransport

public interface KrbTransport
Krb transport.
  • Method Details

    • sendMessage

      void sendMessage(ByteBuffer message) throws IOException
      Send out a Kerberos message to remote peer.
      Parameters:
      message - The message to be sent
      Throws:
      IOException - e
    • receiveMessage

      ByteBuffer receiveMessage() throws IOException
      Receive a Kerberos message from remote.
      Returns:
      The received message
      Throws:
      IOException - e
    • isTcp

      boolean isTcp()
      Judge the type of transport, return true if it is tcp,
      Returns:
      false if it is udp.
    • getRemoteAddress

      InetAddress getRemoteAddress()
      Get address from remote side.
      Returns:
      address
    • setAttachment

      void setAttachment(Object attachment)
      Set an attachment.
      Parameters:
      attachment - The attachment
    • getAttachment

      Object getAttachment()
      Get the attachment set before.
      Returns:
      attachment
    • release

      void release()
      Release and close related resources like connection.