Package com.sun.gssapi
Class ChannelBinding
java.lang.Object
com.sun.gssapi.ChannelBinding
The JGSS accommodates the concept of caller-provided channel
binding information. Channel bindings are used to strengthen
the quality with which peer entity authentication is provided
during context establishment. They enable the JGSS callers to
bind the establishment of the a security context to relevant
characteristics like addresses or to application specific data.
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.
-
Constructor Summary
ConstructorsConstructorDescriptionChannelBinding
(byte[] appData) Construct a channel bindings object without any addressing information.ChannelBinding
(InetAddress initAddr, InetAddress acceptAddr, byte[] appData) Construct a channel bindings object that contains all the user specified tags. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares two instances of ChannelBindingGet the acceptor's address for this channel binding.byte[]
Get the application specified data for this channel binding.Get the initiator's address for this channel binding.
-
Constructor Details
-
ChannelBinding
Construct a channel bindings object that contains all the user specified tags.- Parameters:
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-binding
-
ChannelBinding
public ChannelBinding(byte[] appData) Construct a channel bindings object without any addressing information.- Parameters:
appData
- a byte array of application data to be used as part of the channel-binding
-
-
Method Details
-
getInitiatorAddress
Get the initiator's address for this channel binding.- Returns:
- the initiator's address. null if no address information is contained
-
getAcceptorAddress
Get the acceptor's address for this channel binding.- Returns:
- the acceptor's address. null if no address information is contained
-
getApplicationData
public byte[] getApplicationData()Get the application specified data for this channel binding. The byte array is not copied.- Returns:
- byte[] the application data that comprises this channel-binding
-
equals
Compares two instances of ChannelBinding
-