org.jboss.netty.example.securechat
Class SecureChatSslContextFactory
java.lang.Object
org.jboss.netty.example.securechat.SecureChatSslContextFactory
public class SecureChatSslContextFactory
- extends Object
Creates a bogus SSLContext
. A client-side context created by this
factory accepts any certificate even if it is invalid. A server-side context
created by this factory sends a bogus certificate defined in SecureChatKeyStore
.
You will have to create your context differently in a real world application.
Client Certificate Authentication
To enable client certificate authentication:
- Version:
- $Rev: 2080 $, $Date: 2010-01-26 18:04:19 +0900 (Tue, 26 Jan 2010) $
- Author:
- The Netty Project, Trustin Lee
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecureChatSslContextFactory
public SecureChatSslContextFactory()
getServerContext
public static SSLContext getServerContext()
getClientContext
public static SSLContext getClientContext()
Copyright © 2008-2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.