Tabnine Logo
SSLConnection
Code IndexAdd Tabnine to your IDE (free)

How to use
SSLConnection
in
org.wildfly.security.ssl

Best Java code snippets using org.wildfly.security.ssl.SSLConnection (Showing top 20 results out of 315)

origin: wildfly/wildfly

/**
 * Construct a new instance.
 *
 * @param delegate the delegate SASL client factory
 * @param sslSession supplier of the current SSLSession
 * @deprecated Use {@link #SSLSaslClientFactory(Supplier, SaslClientFactory)} to avoid problems where a TLS client is acting as a SASL server.
 */
public SSLSaslClientFactory(final SaslClientFactory delegate, final Supplier<SSLSession> sslSession) {
  this(() -> SSLConnection.forSession(sslSession.get(), true), delegate);
}
origin: wildfly/wildfly

final boolean clientMode = isClientMode();
switch (bindingType) {
  case TLS_SERVER_ENDPOINT: {
    final X509Certificate serverCert;
    final SSLSession session = getSession();
    if (session == null) {
      return null;
origin: wildfly/wildfly

/**
 * Populate the given channel binding callback with any channel binding data that might be present on this
 * connection.  If no channel binding seems to be supported, then the callback will be left unpopulated.
 *
 * @param callback the binding callback to populate (must not be {@code null})
 */
public void handleChannelBindingCallback(final ChannelBindingCallback callback) {
  Assert.checkNotNullParam("callback", callback);
  byte[] bindingData = getChannelBinding("tls-unique");
  if (bindingData != null) {
    callback.setBindingType("tls-unique");
    callback.setBindingData(bindingData);
  } else {
    bindingData = getChannelBinding(TLS_SERVER_ENDPOINT);
    if (bindingData != null) {
      callback.setBindingType(TLS_SERVER_ENDPOINT);
      callback.setBindingData(bindingData);
    }
  }
}
origin: wildfly/wildfly

  peerCerts = X500.asX509CertificateArray(sslCallback.getSslConnection().getSession().getPeerCertificates());
} catch (SSLPeerUnverifiedException e) {
  log.trace("Peer unverified", e);
final SSLConnection sslConnection = this.sslConnection;
if (sslConnection != null) {
  sslConnection.handleChannelBindingCallback((ChannelBindingCallback) callback);
origin: wildfly/wildfly

/**
 * Get the SSL session in force.
 *
 * @return the SSL session in force
 */
public SSLSession getSslSession() {
  return sslConnection.getSession();
}
origin: wildfly/wildfly

sslConnection.handleChannelBindingCallback((ChannelBindingCallback) callback);
origin: org.wildfly.security/wildfly-elytron-auth-server

  peerCerts = X500.asX509CertificateArray(sslCallback.getSslConnection().getSession().getPeerCertificates());
} catch (SSLPeerUnverifiedException e) {
  log.trace("Peer unverified", e);
final SSLConnection sslConnection = this.sslConnection;
if (sslConnection != null) {
  sslConnection.handleChannelBindingCallback((ChannelBindingCallback) callback);
origin: wildfly/wildfly

final SSLSession sslSession = ((SSLCallback) callback).getSslConnection().getSession();
if (sslSession != null) {
  final Principal localPrincipal = sslSession.getLocalPrincipal();
origin: org.wildfly.security/wildfly-elytron

sslConnection.handleChannelBindingCallback((ChannelBindingCallback) callback);
origin: org.wildfly.security/wildfly-elytron

  peerCerts = X500.asX509CertificateArray(sslCallback.getSslConnection().getSession().getPeerCertificates());
} catch (SSLPeerUnverifiedException e) {
  log.trace("Peer unverified", e);
final SSLConnection sslConnection = this.sslConnection;
if (sslConnection != null) {
  sslConnection.handleChannelBindingCallback((ChannelBindingCallback) callback);
origin: org.wildfly.security/wildfly-elytron

final boolean clientMode = isClientMode();
switch (bindingType) {
  case TLS_SERVER_ENDPOINT: {
    final X509Certificate serverCert;
    final SSLSession session = getSession();
    if (session == null) {
      return null;
origin: wildfly/wildfly

/**
 * Construct a new instance.  The session connection is assumed to be in server mode.
 *
 * @param sslSession supplier for the current SSL session
 * @param delegate the delegate SASL server factory
 * @deprecated Use {@link #SSLSaslServerFactory(Supplier, SaslServerFactory)} to avoid problems where a TLS server is acting as a SASL client.
 */
@Deprecated
public SSLSaslServerFactory(final SaslServerFactory delegate, final Supplier<SSLSession> sslSession) {
  this(() -> SSLConnection.forSession(sslSession.get(), false), delegate);
}
origin: org.wildfly.security/wildfly-elytron

/**
 * Get the SSL session in force.
 *
 * @return the SSL session in force
 */
public SSLSession getSslSession() {
  return sslConnection.getSession();
}
origin: org.wildfly.security/wildfly-elytron-client

sslConnection.handleChannelBindingCallback((ChannelBindingCallback) callback);
origin: org.wildfly.security/wildfly-elytron

/**
 * Populate the given channel binding callback with any channel binding data that might be present on this
 * connection.  If no channel binding seems to be supported, then the callback will be left unpopulated.
 *
 * @param callback the binding callback to populate (must not be {@code null})
 */
public void handleChannelBindingCallback(final ChannelBindingCallback callback) {
  Assert.checkNotNullParam("callback", callback);
  byte[] bindingData = getChannelBinding("tls-unique");
  if (bindingData != null) {
    callback.setBindingType("tls-unique");
    callback.setBindingData(bindingData);
  } else {
    bindingData = getChannelBinding(TLS_SERVER_ENDPOINT);
    if (bindingData != null) {
      callback.setBindingType(TLS_SERVER_ENDPOINT);
      callback.setBindingData(bindingData);
    }
  }
}
origin: org.jboss.eap/wildfly-client-all

  peerCerts = X500.asX509CertificateArray(sslCallback.getSslConnection().getSession().getPeerCertificates());
} catch (SSLPeerUnverifiedException e) {
  log.trace("Peer unverified", e);
final SSLConnection sslConnection = this.sslConnection;
if (sslConnection != null) {
  sslConnection.handleChannelBindingCallback((ChannelBindingCallback) callback);
origin: org.wildfly.security/wildfly-elytron-auth-server

final boolean clientMode = isClientMode();
switch (bindingType) {
  case TLS_SERVER_ENDPOINT: {
    final X509Certificate serverCert;
    final SSLSession session = getSession();
    if (session == null) {
      return null;
origin: wildfly/wildfly

saslClientFactory = new SSLSaslClientFactory(() -> SSLConnection.forSession(sslSession, true), saslClientFactory);
origin: org.jboss.eap/wildfly-client-all

/**
 * Get the SSL session in force.
 *
 * @return the SSL session in force
 */
public SSLSession getSslSession() {
  return sslConnection.getSession();
}
origin: org.jboss.eap/wildfly-client-all

sslConnection.handleChannelBindingCallback((ChannelBindingCallback) callback);
org.wildfly.security.sslSSLConnection

Javadoc

An SSL connection of some sort.

Most used methods

  • forSession
    Create a SSLConnection for the given SSL socket. Since no connection information will be available i
  • getSession
    Get the SSL session associated with this connection.
  • handleChannelBindingCallback
    Populate the given channel binding callback with any channel binding data that might be present on t
  • getChannelBinding
    Get the channel binding of the given type from this connection. If the data is not present or the ty
  • isClientMode
    Get the client-mode flag for this connection.

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now