com.sun.gssapi
public class ChannelBinding extends java.lang.Object
The caller initiating the security context must determine the appropriate channel binding values to set in the GSSContext object. The acceptor must provide identical binding in order to validate that received tokens possess correct channel-related characteristics.
Use of channel bindings is optional in JGSS. Since channel- binding information may be transmitted in context establishment tokens, applications should therefore not use confidential data as channel-binding components.
GSSContext.setChannelBinding(com.sun.gssapi.ChannelBinding)
,
InetAddress
Constructor and Description |
---|
ChannelBinding(byte[] appData)
Construct a channel bindings object without any addressing
information.
|
ChannelBinding(java.net.InetAddress initAddr,
java.net.InetAddress acceptAddr,
byte[] appData)
Construct a channel bindings object that contains all the user
specified tags.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares two instances of ChannelBinding
|
java.net.InetAddress |
getAcceptorAddress()
Get the acceptor's address for this channel binding.
|
byte[] |
getApplicationData()
Get the application specified data for this channel binding.
|
java.net.InetAddress |
getInitiatorAddress()
Get the initiator's address for this channel binding.
|
public ChannelBinding(java.net.InetAddress initAddr, java.net.InetAddress acceptAddr, byte[] appData)
initAddr
- the address of the context initiatoracceptAddr
- address of the context acceptorappData
- a byte array of application data to be used as
part of the channel-bindingpublic ChannelBinding(byte[] appData)
appData
- a byte array of application data to be used as
part of the channel-bindingpublic java.net.InetAddress getInitiatorAddress()
public java.net.InetAddress getAcceptorAddress()
public byte[] getApplicationData()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object