Package org.wildfly.security.ssl
Class TLSServerEndPointChannelBinding
- java.lang.Object
- 
- org.wildfly.security.ssl.TLSServerEndPointChannelBinding
 
- 
 public final class TLSServerEndPointChannelBinding extends Object Utilities for handling the "tls-server-end-point" channel binding strategy used by various types of authentication mechanisms.- Author:
- David M. Lloyd
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringTLS_SERVER_ENDPOINT
 - 
Constructor SummaryConstructors Modifier Constructor Description privateTLSServerEndPointChannelBinding()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static byte[]getChannelBindingData(X509Certificate serverCert)static StringgetDigestAlgorithm(String sigAlgOID)Get the digest algorithm that would be used for a given signature algorithm OID.static voidhandleChannelBindingCallback(ChannelBindingCallback channelBindingCallback, X509Certificate[] serverCerts)Convenience method to handle a channel binding callback.
 
- 
- 
- 
Field Detail- 
TLS_SERVER_ENDPOINTpublic static final String TLS_SERVER_ENDPOINT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getDigestAlgorithmpublic static String getDigestAlgorithm(String sigAlgOID) Get the digest algorithm that would be used for a given signature algorithm OID.- Parameters:
- sigAlgOID- the signature algorithm OID (must not be- null)
- Returns:
- the digest algorithm, or nullif the OID is not recognized
 
 - 
handleChannelBindingCallbackpublic static void handleChannelBindingCallback(ChannelBindingCallback channelBindingCallback, X509Certificate[] serverCerts) throws UnsupportedCallbackException Convenience method to handle a channel binding callback.- Parameters:
- channelBindingCallback- the callback (must not be- null)
- serverCerts- the server certificate chain
- Throws:
- UnsupportedCallbackException- if the server certificates are not present or unsupported and the callback is not optional
 
 - 
getChannelBindingDatastatic byte[] getChannelBindingData(X509Certificate serverCert) throws NoSuchAlgorithmException, CertificateEncodingException 
 
- 
 
-