Acme.Serve
Class SSLAcceptor

java.lang.Object
  extended by Acme.Serve.SSLAcceptor
All Implemented Interfaces:
Serve.Acceptor

public class SSLAcceptor
extends java.lang.Object
implements Serve.Acceptor


Field Summary
static java.lang.String ARG_ALGORITHM
           
static java.lang.String ARG_BACKLOG
           
static java.lang.String ARG_CLIENTAUTH
           
static java.lang.String ARG_IFADDRESS
           
static java.lang.String ARG_KEYPASS
           
static java.lang.String ARG_KEYSTOREFILE
           
static java.lang.String ARG_KEYSTOREPASS
           
static java.lang.String ARG_KEYSTORETYPE
           
static java.lang.String ARG_PORT
           
static java.lang.String ARG_PROTOCOL
           
static int BACKLOG
          default backlog
protected  java.lang.String keystoreFile
          Pathname to the key store file to be used.
static java.lang.String KEYSTORETYPE
          Storage type of the key store file to be used.
static int PORT
          default SSL port
static java.lang.String protocol
          SSL protocol variant to use.
static java.lang.String PROTOCOL_HANDLER
           
static java.lang.String PROTOCOL_PACKAGES
          The name of the system property containing a "|" delimited list of protocol handler packages.
protected  java.net.ServerSocket socket
           
static java.lang.String SUNX509
          Certificate encoding algorithm to be used.
static java.lang.String TLS
          SSL protocol variant to use.
 
Constructor Summary
SSLAcceptor()
           
 
Method Summary
 java.net.Socket accept()
           
 void destroy()
           
 void init(java.util.Map inProperties, java.util.Map outProperties)
           
protected static void initHandler()
          Register our URLStreamHandler for the "https:" protocol.
protected  void initServerSocket(java.net.ServerSocket ssocket, boolean clientAuth)
          Set the requested properties for this server socket.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ARG_ALGORITHM

public static final java.lang.String ARG_ALGORITHM
See Also:
Constant Field Values

ARG_CLIENTAUTH

public static final java.lang.String ARG_CLIENTAUTH
See Also:
Constant Field Values

ARG_KEYSTOREFILE

public static final java.lang.String ARG_KEYSTOREFILE
See Also:
Constant Field Values

ARG_KEYSTOREPASS

public static final java.lang.String ARG_KEYSTOREPASS
See Also:
Constant Field Values

ARG_KEYSTORETYPE

public static final java.lang.String ARG_KEYSTORETYPE
See Also:
Constant Field Values

ARG_KEYPASS

public static final java.lang.String ARG_KEYPASS
See Also:
Constant Field Values

ARG_PROTOCOL

public static final java.lang.String ARG_PROTOCOL
See Also:
Constant Field Values

ARG_BACKLOG

public static final java.lang.String ARG_BACKLOG
See Also:
Constant Field Values

ARG_IFADDRESS

public static final java.lang.String ARG_IFADDRESS
See Also:
Constant Field Values

ARG_PORT

public static final java.lang.String ARG_PORT
See Also:
Constant Field Values

PROTOCOL_HANDLER

public static final java.lang.String PROTOCOL_HANDLER
See Also:
Constant Field Values

PROTOCOL_PACKAGES

public static final java.lang.String PROTOCOL_PACKAGES
The name of the system property containing a "|" delimited list of protocol handler packages.

See Also:
Constant Field Values

SUNX509

public static final java.lang.String SUNX509
Certificate encoding algorithm to be used.

See Also:
Constant Field Values

PORT

public static final int PORT
default SSL port

See Also:
Constant Field Values

BACKLOG

public static final int BACKLOG
default backlog

See Also:
Constant Field Values

KEYSTORETYPE

public static final java.lang.String KEYSTORETYPE
Storage type of the key store file to be used.

See Also:
Constant Field Values

TLS

public static final java.lang.String TLS
SSL protocol variant to use.

See Also:
Constant Field Values

protocol

public static final java.lang.String protocol
SSL protocol variant to use.

See Also:
Constant Field Values

keystoreFile

protected java.lang.String keystoreFile
Pathname to the key store file to be used.


socket

protected java.net.ServerSocket socket
Constructor Detail

SSLAcceptor

public SSLAcceptor()
Method Detail

accept

public java.net.Socket accept()
                       throws java.io.IOException
Specified by:
accept in interface Serve.Acceptor
Throws:
java.io.IOException

destroy

public void destroy()
             throws java.io.IOException
Specified by:
destroy in interface Serve.Acceptor
Throws:
java.io.IOException

init

public void init(java.util.Map inProperties,
                 java.util.Map outProperties)
          throws java.io.IOException
Specified by:
init in interface Serve.Acceptor
Throws:
java.io.IOException

initHandler

protected static void initHandler()
Register our URLStreamHandler for the "https:" protocol.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

initServerSocket

protected void initServerSocket(java.net.ServerSocket ssocket,
                                boolean clientAuth)
Set the requested properties for this server socket.

Parameters:
ssocket - The server socket to be configured


Copyright © 2010. All Rights Reserved.