APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.security.util

public Class TlsChannelBinding

extends Object
Class Inheritance
Imports
java.security.MessageDigest, .NoSuchAlgorithmException, java.security.cert.CertificateEncodingException, .X509Certificate, java.util.Arrays, .Locale

This class implements the Channel Binding for TLS as defined in Channel Bindings for TLS Format of the Channel Binding data is also defined in On the Use of Channel Bindings to Secure Channels section 2.1.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private final byte[]
private final TlsChannelBinding.TlsChannelBindingType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TlsChannelBinding
create(X509Certificate serverCertificate)

Construct tls-server-end-point Channel Binding data

public byte[]
public TlsChannelBinding.TlsChannelBindingType
public static TlsChannelBinding.TlsChannelBindingType

Returns:

TLS Channel Binding type or null if given string is null
parseType
(String cbType)

Parse given value to see if it is a recognized and supported channel binding type

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cbDataback to summary
private final byte[] cbData
cbTypeback to summary
private final TlsChannelBinding.TlsChannelBindingType cbType

Constructor Detail

TlsChannelBindingback to summary
private TlsChannelBinding(TlsChannelBinding.TlsChannelBindingType cbType, byte[] cbData)

Method Detail

createback to summary
public static TlsChannelBinding create(X509Certificate serverCertificate) throws ChannelBindingException

Construct tls-server-end-point Channel Binding data

getDataback to summary
public byte[] getData()
getTypeback to summary
public TlsChannelBinding.TlsChannelBindingType getType()
parseTypeback to summary
public static TlsChannelBinding.TlsChannelBindingType parseType(String cbType) throws ChannelBindingException

Parse given value to see if it is a recognized and supported channel binding type

Returns:TlsChannelBinding.TlsChannelBindingType

TLS Channel Binding type or null if given string is null

sun.security.util back to summary

public final Enum TlsChannelBinding.TlsChannelBindingType

extends Enum<TlsChannelBinding.TlsChannelBindingType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String
public static final TlsChannelBinding.TlsChannelBindingType
TLS_SERVER_END_POINT

Channel binding on the basis of TLS server certificate.

public static final TlsChannelBinding.TlsChannelBindingType
TLS_UNIQUE

Channel binding on the basis of TLS Finished message.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
public static TlsChannelBinding.TlsChannelBindingType
public static TlsChannelBinding.TlsChannelBindingType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

nameback to summary
private final String name

Hides java.lang.Enum.name.

TLS_SERVER_END_POINTback to summary
public static final TlsChannelBinding.TlsChannelBindingType TLS_SERVER_END_POINT

Channel binding on the basis of TLS server certificate.

TLS_UNIQUEback to summary
public static final TlsChannelBinding.TlsChannelBindingType TLS_UNIQUE

Channel binding on the basis of TLS Finished message. TLS_UNIQUE is defined by RFC 5929 but is not supported by the current LDAP stack.

Constructor Detail

TlsChannelBindingTypeback to summary
private TlsChannelBindingType(String name)

Method Detail

getNameback to summary
public String getName()
valueOfback to summary
public static TlsChannelBinding.TlsChannelBindingType valueOf(String name)
valuesback to summary
public static TlsChannelBinding.TlsChannelBindingType[] values()