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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
bindingData
private String
bindingType
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ChannelBindingCallback()
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBindingData()
Get the opaque channel binding data.String
getBindingType()
Get the selected channel binding type.boolean
needsInformation()
Determine if this callback is requesting information.void
setBindingData(byte[] bindingData)
Set the channel binding data.void
setBindingType(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, wait
-
Methods inherited from interface org.wildfly.security.auth.callback.ExtendedCallback
isOptional
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bindingType
private String bindingType
-
bindingData
private byte[] bindingData
-
-
Method Detail
-
needsInformation
public boolean needsInformation()
Description copied from interface:ExtendedCallback
Determine if this callback is requesting information.- Specified by:
needsInformation
in interfaceExtendedCallback
- 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
-
-