Class ChannelBindingCallback
java.lang.Object
org.wildfly.security.auth.callback.ChannelBindingCallback
- All Implemented Interfaces:
Serializable,Callback,ExtendedCallback
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get the opaque channel binding data.Get the selected channel binding type.booleanDetermine if this callback is requesting information.voidsetBindingData(byte[] bindingData) Set the channel binding data.voidsetBindingType(String bindingType) Set the selected channel binding type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.auth.callback.ExtendedCallback
isOptional
-
Constructor Details
-
ChannelBindingCallback
public ChannelBindingCallback()Construct a new instance.
-
-
Method Details
-
needsInformation
public boolean needsInformation()Description copied from interface:ExtendedCallbackDetermine if this callback is requesting information.- Specified by:
needsInformationin interfaceExtendedCallback- Returns:
trueif the callback is requesting information,falseif it is only providing information
-
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
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
-