Interface KrbTransport
- All Known Implementing Classes:
AbstractKrbTransport,KdcUdpTransport,KrbTcpTransport,KrbUdpTransport
public interface KrbTransport
Krb transport.
-
Method Summary
Modifier and TypeMethodDescriptionGet the attachment set before.Get address from remote side.booleanisTcp()Judge the type of transport, return true if it is tcp,Receive a Kerberos message from remote.voidrelease()Release and close related resources like connection.voidsendMessage(ByteBuffer message) Send out a Kerberos message to remote peer.voidsetAttachment(Object attachment) Set an attachment.
-
Method Details
-
sendMessage
Send out a Kerberos message to remote peer.- Parameters:
message- The message to be sent- Throws:
IOException- e
-
receiveMessage
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
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.
-