com.sun.grizzly.config
Class SSLConfigHolder

java.lang.Object
  extended by com.sun.grizzly.config.SSLConfigHolder

public class SSLConfigHolder
extends Object

Author:
oleksiys

Field Summary
protected  boolean clientMode
          Client mode when handshaking.
protected  String[] enabledCipherSuites
          The list of cipher suite
protected  String[] enabledProtocols
          the list of protocols
protected  boolean needClientAuth
          Require client Authentication.
protected  SSLContext sslContext
          The SSLContext associated with the SSL implementation we are running on.
protected  com.sun.hk2.component.Holder<SSLImplementation> sslImplementation
          The SSLImplementation
protected  int sslInactivityTimeout
          Handshake timeout.
protected  boolean wantClientAuth
          True when requesting authentication.
 
Constructor Summary
SSLConfigHolder(org.jvnet.hk2.component.Habitat habitat, Ssl ssl)
           
 
Method Summary
 boolean configureSSL()
          Configures the SSL properties on the given PECoyoteConnector from the SSL config of the given HTTP listener.
 SSLEngine createSSLEngine()
           
 String[] getEnabledCipherSuites()
          Returns the list of cipher suites to be enabled when SSLEngine is initialized.
 String[] getEnabledProtocols()
          Returns the list of protocols to be enabled when SSLEngine is initialized.
 SSLContext getSSLContext()
          Return the SSLContext required to support SSL over NIO.
 SSLImplementation getSSLImplementation()
          Return the SSLImplementation
 int getSslInactivityTimeout()
           
static boolean isAllowLazyInit(Ssl ssl)
           
 boolean isClientMode()
          Returns true if the SSlEngine is set to use client mode when handshaking.
 boolean isNeedClientAuth()
          Returns true if the SSLEngine will require client authentication.
 boolean isWantClientAuth()
          Returns true if the engine will request client authentication.
protected  void logEmptyWarning(Ssl ssl, String msg)
           
 void setSSLConfig(SSLConfig sslConfig)
          Set the SSLContext required to support SSL over NIO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sslImplementation

protected com.sun.hk2.component.Holder<SSLImplementation> sslImplementation
The SSLImplementation


sslContext

protected SSLContext sslContext
The SSLContext associated with the SSL implementation we are running on.


enabledCipherSuites

protected String[] enabledCipherSuites
The list of cipher suite


enabledProtocols

protected String[] enabledProtocols
the list of protocols


clientMode

protected boolean clientMode
Client mode when handshaking.


needClientAuth

protected boolean needClientAuth
Require client Authentication.


wantClientAuth

protected boolean wantClientAuth
True when requesting authentication.


sslInactivityTimeout

protected int sslInactivityTimeout
Handshake timeout.

Constructor Detail

SSLConfigHolder

public SSLConfigHolder(org.jvnet.hk2.component.Habitat habitat,
                       Ssl ssl)
                throws SSLException
Throws:
SSLException
Method Detail

setSSLConfig

public void setSSLConfig(SSLConfig sslConfig)
Set the SSLContext required to support SSL over NIO.


getSSLContext

public SSLContext getSSLContext()
Return the SSLContext required to support SSL over NIO.


getSSLImplementation

public SSLImplementation getSSLImplementation()
Return the SSLImplementation


getEnabledCipherSuites

public String[] getEnabledCipherSuites()
Returns the list of cipher suites to be enabled when SSLEngine is initialized.

Returns:
null means 'use SSLEngine's default.'

getEnabledProtocols

public String[] getEnabledProtocols()
Returns the list of protocols to be enabled when SSLEngine is initialized.

Returns:
null means 'use SSLEngine's default.'

isClientMode

public boolean isClientMode()
Returns true if the SSlEngine is set to use client mode when handshaking.

Returns:
is client mode enabled

isNeedClientAuth

public boolean isNeedClientAuth()
Returns true if the SSLEngine will require client authentication.


isWantClientAuth

public boolean isWantClientAuth()
Returns true if the engine will request client authentication.


getSslInactivityTimeout

public int getSslInactivityTimeout()
See Also:
Ssl.getSSLInactivityTimeout()

createSSLEngine

public SSLEngine createSSLEngine()

configureSSL

public boolean configureSSL()
Configures the SSL properties on the given PECoyoteConnector from the SSL config of the given HTTP listener.


logEmptyWarning

protected void logEmptyWarning(Ssl ssl,
                               String msg)

isAllowLazyInit

public static boolean isAllowLazyInit(Ssl ssl)


Copyright © 2013 Oracle Corporation. All Rights Reserved.