|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.ServerSocketChannel
org.norther.tammi.acorn.nio.SSLServerSocketChannel
public class SSLServerSocketChannel
A secure server socket channel implementation enclosing accepted non-secure
SocketChannels into SSLSocketChannels. The
accepted channels must be provided by an adapted non-secure concrete
ServerSocketChannel implementation.
This implementation extends abstract ServerSocketChannel and
forwards applicable calls to methods of the adapted concrete implementation.
It also implements AdaptableChannel as selectors typically
don't accept channel implementations from other vendors, so the selector
registration must be done with the adaptee channel.
| Constructor Summary | |
|---|---|
SSLServerSocketChannel(ServerSocketChannel channel,
SSLContext context)
Construct a new channel. |
|
| Method Summary | |
|---|---|
SocketChannel |
accept()
|
Channel |
getAdapteeChannel()
Gets the adaptee of this adaptable channel. |
boolean |
getNeedClientAuth()
Checks whether client authentication is needed. |
boolean |
getWantClientAuth()
Checks whether client authentication is wanted. |
protected void |
implCloseSelectableChannel()
|
protected void |
implConfigureBlocking(boolean block)
|
void |
setNeedClientAuth(boolean flag)
Sets whether client authentication is needed. |
void |
setWantClientAuth(boolean flag)
Sets whether client authentication is wanted. |
ServerSocket |
socket()
|
String |
toString()
|
| Methods inherited from class java.nio.channels.ServerSocketChannel |
|---|
open, validOps |
| Methods inherited from class java.nio.channels.spi.AbstractSelectableChannel |
|---|
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, register |
| Methods inherited from class java.nio.channels.SelectableChannel |
|---|
register |
| Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel |
|---|
begin, close, end, isOpen |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.nio.channels.Channel |
|---|
close, isOpen |
| Constructor Detail |
|---|
public SSLServerSocketChannel(ServerSocketChannel channel,
SSLContext context)
channel - the unsecure socket channel.context - the SSL context.| Method Detail |
|---|
public ServerSocket socket()
socket in class ServerSocketChannel
public SocketChannel accept()
throws IOException
accept in class ServerSocketChannelIOExceptionpublic Channel getAdapteeChannel()
AdaptableChannel
getAdapteeChannel in interface AdaptableChannelpublic String toString()
toString in class Objectpublic boolean getWantClientAuth()
public void setWantClientAuth(boolean flag)
flag - true for client authentication, false otherwise.public boolean getNeedClientAuth()
public void setNeedClientAuth(boolean flag)
flag - true for client authentication, false otherwise.
protected void implCloseSelectableChannel()
throws IOException
implCloseSelectableChannel in class AbstractSelectableChannelIOException
protected void implConfigureBlocking(boolean block)
throws IOException
implConfigureBlocking in class AbstractSelectableChannelIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||