Class ChannelBindingCallback

java.lang.Object
org.wildfly.security.auth.callback.ChannelBindingCallback
All Implemented Interfaces:
Serializable, Callback, ExtendedCallback

public final class ChannelBindingCallback extends Object implements ExtendedCallback, Serializable
A callback used to establish the channel binding for a security mechanism which supports it. Both the binding type and data must be set, otherwise no channel binding will be established. The channel binding type should be one of the types described in IANA's channel binding type registry.
Author:
David M. Lloyd
See Also:
  • Constructor Details

    • ChannelBindingCallback

      public ChannelBindingCallback()
      Construct a new instance.
  • Method Details

    • needsInformation

      public boolean needsInformation()
      Description copied from interface: ExtendedCallback
      Determine if this callback is requesting information.
      Specified by:
      needsInformation in interface ExtendedCallback
      Returns:
      true if the callback is requesting information, false if it is only providing information
    • getBindingType

      public String getBindingType()
      Get the selected channel binding type.
      Returns:
      the selected channel binding type
    • getBindingData

      public byte[] getBindingData()
      Get the opaque channel binding data. This data may come from the connection negotiation or from another security layer.
      Returns:
      the opaque channel binding data
    • setBindingType

      public void setBindingType(String bindingType)
      Set the selected channel binding type. The type should be one registered with IANA.
      Parameters:
      bindingType - the selected channel binding type
    • setBindingData

      public void setBindingData(byte[] bindingData)
      Set the channel binding data. This data may come from the connection negotiation or from another security layer.
      Parameters:
      bindingData - the channel binding data