Java Doc for SslSelectChannelConnector.java in  » Sevlet-Container » jetty-extras » 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 extras » org.mortbay.jetty.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mortbay.jetty.security.SslSelectChannelConnector

SslSelectChannelConnector
public class SslSelectChannelConnector extends SelectChannelConnector (Code)
SslSelectChannelConnector.
author:
   Nik Gonzalez
author:
   Greg Wilkins


Field Summary
final static  StringCACHED_INFO_ATTR
     The name of the SSLSession attribute that will contain any cached information.
final public static  StringDEFAULT_KEYSTORE
     Default value for the keystore location path.
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  SslSelectChannelConnector()
    

Method Summary
protected  SSLEnginecreateSSLEngine()
    
public  voidcustomize(EndPoint endpoint, Request request)
     Allow the Listener a chance to customise the request.
protected  voiddoStart()
    
public  StringgetAlgorithm()
    
public  String[]getCipherSuites()
    
public  StringgetKeystore()
    
public  StringgetKeystoreType()
    
public  booleangetNeedClientAuth()
    
public  StringgetProtocol()
    
public  StringgetProvider()
    
public  StringgetSecureRandomAlgorithm()
    
public  StringgetSslKeyManagerFactoryAlgorithm()
    
public  StringgetSslTrustManagerFactoryAlgorithm()
    
public  StringgetTruststore()
    
public  StringgetTruststoreType()
    
public static  voidmain(String[] args)
    
protected  SelectChannelEndPointnewEndPoint(SocketChannel channel, SelectSet selectSet, SelectionKey key)
    
public  voidsetAlgorithm(String algorithm)
    
public  voidsetCipherSuites(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)
    

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



DEFAULT_KEYSTORE
final public static String DEFAULT_KEYSTORE(Code)
Default value for the keystore location path.



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
SslSelectChannelConnector
public SslSelectChannelConnector()(Code)




Method Detail
createSSLEngine
protected SSLEngine createSSLEngine() throws IOException(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.



doStart
protected void doStart() throws Exception(Code)



getAlgorithm
public String getAlgorithm()(Code)



getCipherSuites
public String[] getCipherSuites()(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)



main
public static void main(String[] args) throws Exception(Code)



newEndPoint
protected SelectChannelEndPoint newEndPoint(SocketChannel channel, SelectSet selectSet, SelectionKey key) throws IOException(Code)



setAlgorithm
public void setAlgorithm(String algorithm)(Code)



setCipherSuites
public void setCipherSuites(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)



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