Java Doc for SslSocketConnector.java in  » Sevlet-Container » jetty-modules » org » mortbay » jetty » security » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » jetty modules » org.mortbay.jetty.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mortbay.jetty.bio.SocketConnector
   org.mortbay.jetty.security.SslSocketConnector

SslSocketConnector
public class SslSocketConnector extends SocketConnector (Code)
JSSE Socket Listener. This specialization of HttpListener is an abstract listener that can be used as the basis for a specific JSSE listener. This is heavily based on the work from Court Demas, which in turn is based on the work from Forge Research.
author:
   Greg Wilkins (gregw@mortbay.com)
author:
   Court Demas (court@kiwiconsulting.com)
author:
   Forge Research Pty Ltd ACN 003 491 576
author:
   Jan Hlavat�


Field Summary
final static  StringCACHED_INFO_ATTR
     The name of the SSLSession attribute that will contain any cached information.
final public static  StringKEYPASSWORD_PROPERTY
     String name of key password property.
final public static  StringPASSWORD_PROPERTY
     String name of keystore password property.

Constructor Summary
public  SslSocketConnector()
     Constructor.

Method Summary
protected  voidconfigure(Socket socket)
    
protected  SSLServerSocketFactorycreateFactory()
    
public  voidcustomize(EndPoint endpoint, Request request)
     Allow the Listener a chance to customise the request.
public  String[]getExcludeCipherSuites()
    
public  StringgetKeystore()
    
public  StringgetKeystoreType()
    
public  booleangetNeedClientAuth()
    
public  StringgetProtocol()
    
public  StringgetProvider()
    
public  StringgetSecureRandomAlgorithm()
    
public  StringgetSslKeyManagerFactoryAlgorithm()
    
public  StringgetSslTrustManagerFactoryAlgorithm()
    
public  StringgetTruststore()
    
public  StringgetTruststoreType()
    
public  booleangetWantClientAuth()
    
public  booleanisConfidential(Request request)
     By default, we're confidential, given we speak SSL.
public  booleanisIntegral(Request request)
     By default, we're integral, given we speak SSL.
protected  ServerSocketnewServerSocket(String host, int port, int backlog)
    
Parameters:
  addr - The SocketAddress address that this server should listen on
Parameters:
  backlog - See ServerSocket.bind(java.net.SocketAddressint) A new ServerSocket socket object bound to the supplied address with all othersettings as per the current configuration of this connector.
public  voidsetExcludeCipherSuites(String[] cipherSuites)
    
public  voidsetKeyPassword(String password)
    
public  voidsetKeystore(String keystore)
    
public  voidsetKeystoreType(String keystoreType)
    
public  voidsetNeedClientAuth(boolean needClientAuth)
    
public  voidsetPassword(String password)
    
public  voidsetProtocol(String protocol)
    
public  voidsetProvider(String _provider)
    
public  voidsetSecureRandomAlgorithm(String algorithm)
    
public  voidsetSslKeyManagerFactoryAlgorithm(String algorithm)
    
public  voidsetSslTrustManagerFactoryAlgorithm(String algorithm)
    
public  voidsetTrustPassword(String password)
    
public  voidsetTruststore(String truststore)
    
public  voidsetTruststoreType(String truststoreType)
    
public  voidsetWantClientAuth(boolean wantClientAuth)
     Set the value of the _wantClientAuth property.

Field Detail
CACHED_INFO_ATTR
final static String CACHED_INFO_ATTR(Code)
The name of the SSLSession attribute that will contain any cached information.



KEYPASSWORD_PROPERTY
final public static String KEYPASSWORD_PROPERTY(Code)
String name of key password property.



PASSWORD_PROPERTY
final public static String PASSWORD_PROPERTY(Code)
String name of keystore password property.




Constructor Detail
SslSocketConnector
public SslSocketConnector()(Code)
Constructor.




Method Detail
configure
protected void configure(Socket socket) throws IOException(Code)



createFactory
protected SSLServerSocketFactory createFactory() throws Exception(Code)



customize
public void customize(EndPoint endpoint, Request request) throws IOException(Code)
Allow the Listener a chance to customise the request. before the server does its stuff.
This allows the required attributes to be set for SSL requests.
The requirements of the Servlet specs are:
  • an attribute named "javax.servlet.request.cipher_suite" of type String.
  • an attribute named "javax.servlet.request.key_size" of type Integer.
  • an attribute named "javax.servlet.request.X509Certificate" of type java.security.cert.X509Certificate[]. This is an array of objects of type X509Certificate, the order of this array is defined as being in ascending order of trust. The first certificate in the chain is the one set by the client, the next is the one used to authenticate the first, and so on.

Parameters:
  endpoint - The Socket the request arrived on. This should be a SocketEndPoint wrapping a SSLSocket.
Parameters:
  request - HttpRequest to be customised.



getExcludeCipherSuites
public String[] getExcludeCipherSuites()(Code)



getKeystore
public String getKeystore()(Code)



getKeystoreType
public String getKeystoreType()(Code)



getNeedClientAuth
public boolean getNeedClientAuth()(Code)



getProtocol
public String getProtocol()(Code)



getProvider
public String getProvider()(Code)



getSecureRandomAlgorithm
public String getSecureRandomAlgorithm()(Code)



getSslKeyManagerFactoryAlgorithm
public String getSslKeyManagerFactoryAlgorithm()(Code)



getSslTrustManagerFactoryAlgorithm
public String getSslTrustManagerFactoryAlgorithm()(Code)



getTruststore
public String getTruststore()(Code)



getTruststoreType
public String getTruststoreType()(Code)



getWantClientAuth
public boolean getWantClientAuth()(Code)



isConfidential
public boolean isConfidential(Request request)(Code)
By default, we're confidential, given we speak SSL. But, if we've been told about an confidential port, and said port is not our port, then we're not. This allows separation of listeners providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener configured to require client certs providing CONFIDENTIAL, whereas another SSL listener not requiring client certs providing mere INTEGRAL constraints.



isIntegral
public boolean isIntegral(Request request)(Code)
By default, we're integral, given we speak SSL. But, if we've been told about an integral port, and said port is not our port, then we're not. This allows separation of listeners providing INTEGRAL versus CONFIDENTIAL constraints, such as one SSL listener configured to require client certs providing CONFIDENTIAL, whereas another SSL listener not requiring client certs providing mere INTEGRAL constraints.



newServerSocket
protected ServerSocket newServerSocket(String host, int port, int backlog) throws IOException(Code)

Parameters:
  addr - The SocketAddress address that this server should listen on
Parameters:
  backlog - See ServerSocket.bind(java.net.SocketAddressint) A new ServerSocket socket object bound to the supplied address with all othersettings as per the current configuration of this connector.
See Also:   SslSocketConnector.setWantClientAuth
See Also:   SslSocketConnector.setNeedClientAuth
See Also:   SslSocketConnector.setCipherSuites
exception:
  IOException -



setExcludeCipherSuites
public void setExcludeCipherSuites(String[] cipherSuites)(Code)

author:
   Tony Jiang



setKeyPassword
public void setKeyPassword(String password)(Code)



setKeystore
public void setKeystore(String keystore)(Code)



setKeystoreType
public void setKeystoreType(String keystoreType)(Code)



setNeedClientAuth
public void setNeedClientAuth(boolean needClientAuth)(Code)
Set the value of the needClientAuth property
Parameters:
  needClientAuth - true iff we require client certificate authentication.



setPassword
public void setPassword(String password)(Code)



setProtocol
public void setProtocol(String protocol)(Code)



setProvider
public void setProvider(String _provider)(Code)



setSecureRandomAlgorithm
public void setSecureRandomAlgorithm(String algorithm)(Code)



setSslKeyManagerFactoryAlgorithm
public void setSslKeyManagerFactoryAlgorithm(String algorithm)(Code)



setSslTrustManagerFactoryAlgorithm
public void setSslTrustManagerFactoryAlgorithm(String algorithm)(Code)



setTrustPassword
public void setTrustPassword(String password)(Code)



setTruststore
public void setTruststore(String truststore)(Code)



setTruststoreType
public void setTruststoreType(String truststoreType)(Code)



setWantClientAuth
public void setWantClientAuth(boolean wantClientAuth)(Code)
Set the value of the _wantClientAuth property. This property is used when SslSocketConnector.newServerSocket(SocketAddress,int) opening server sockets .
Parameters:
  wantClientAuth - true iff we want client certificate authentication.
See Also:   SSLServerSocket.setWantClientAuth



Fields inherited from org.mortbay.jetty.bio.SocketConnector
protected Set _connections(Code)(Java Doc)
protected ServerSocket _serverSocket(Code)(Java Doc)

Methods inherited from org.mortbay.jetty.bio.SocketConnector
public void accept(int acceptorID) throws IOException, InterruptedException(Code)(Java Doc)
public void close() throws IOException(Code)(Java Doc)
public void customize(EndPoint endpoint, Request request) throws IOException(Code)(Java Doc)
protected void doStart() throws Exception(Code)(Java Doc)
protected void doStop() throws Exception(Code)(Java Doc)
public Object getConnection()(Code)(Java Doc)
public int getLocalPort()(Code)(Java Doc)
protected Buffer newBuffer(int size)(Code)(Java Doc)
protected HttpConnection newHttpConnection(EndPoint endpoint)(Code)(Java Doc)
protected ServerSocket newServerSocket(String host, int port, int backlog) throws IOException(Code)(Java Doc)
public void open() throws IOException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.