Java Doc for SecurityInstallConfig.java in  » ESB » open-esb » com » sun » jbi » internal » security » config » 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 » ESB » open esb » com.sun.jbi.internal.security.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jbi.internal.security.config.SecurityInstallConfig

SecurityInstallConfig
public class SecurityInstallConfig implements com.sun.jbi.internal.security.config.SecurityConfiguration(Code)
Class which encapsulates the installation configuration for the Security Service. Remember : modifiers should be synchronized.
author:
   Sun Microsystems, Inc.



Constructor Summary
public  SecurityInstallConfig(StringTranslator translator)
     Creates a new instance of SecurityInstallConfig.
public  SecurityInstallConfig(Document dom, StringTranslator translator)
     Constructor to create SecurityConfiguration from DOM.

Method Summary
public synchronized  voidaddKeyStoreManager(String name, String manager)
     Add a new KeyStore Manager.
public synchronized  voidaddParameterToKeyStoreManager(String manager, String name, String value)
     Add a parameter to a KeyStoreManager, if it does not exist, the parameter is not added.
public synchronized  voidaddParameterToUserDomain(String domain, String name, String value)
     Add a parameter to a User Domain, if the domain does not exist, the parameter is not added.
public  voidaddSecurityContexts(Document dom)
    
public synchronized  voidaddUserDomain(String name, String domain)
     Add a new User Domain.
public  voidcreateSecurityConfiguration(Document dom)
     Create a SecurityConfiguration object from the dom.
public static  SecurityInstallConfigcreateSecurityInstallConfig(GenericConfigurationMBean configMBean, StringTranslator translator)
     Create a SecurityInstallConfig from a GenericConfigurationMBean.
Parameters:
  configMBean - is the GenericConfigurationMBean which has the Properties to be used for the creation of the SecurityInstallConfig object
Parameters:
  translator - is the StringTranslator
throws:
  JBIException - if the configuration data is not sufficient/valid tocreate the SecurityConfiguration information.
public static  PropertiesfilterProperties(Pattern pattern, GenericConfigurationMBean configMBean)
     Filter Property keys with the specified prefix.
public static  PropertiesfilterProperties(Pattern pattern, Properties srcProps)
     Filter Property keys with the specified prefix.
Parameters:
  pattern - is the pattern to be matched.
Parameters:
  srcProps - are the Properties to search for a match.
public synchronized  org.w3c.dom.DocumentgenerateDocument()
     As the name suggests generate a DOM from the Configuration data this object holds.
public  StringgetDefaultKeyStoreManagerName()
    
public  StringgetDefaultUserDomainName()
    
public  HashMapgetKeyStoreContexts()
     Get a Map of KeyStore Services keyed by their name.
public  StringgetKeyStoreCtx(String name)
     Get an XML String which has the meta-data for a particular key store manager.
Parameters:
  name - is the logical name of the KeyStoreManager.
public  StringgetKeyStoreCtxs()
     Get an XML String listing all the KeyStoreManagers and their meta-data.
public  StringgetSSLClientAlias()
    
public  StringgetSSLClientProtocol()
    
public  booleangetSSLClientUseDefault()
    
public  booleangetSSLServerRequireClientAuth()
    
public  StringgetTransportSecurityConfig()
     Get an XML String for the TransportSecurityContext.
public  PropertiesgetTransportSecurityContext()
    
public  HashMapgetUserDomainContexts()
     Get a Map of User Domain Contexts by their name.
public  StringgetUserDomainCtx(String name)
     Get an XML String which has the meta-data for a particular user domain User Domain.
Parameters:
  name - is the logical name of the UserDomain.
public  StringgetUserDomainCtxs()
     Get an XML String listing all the UserDomains and their meta-data.
public synchronized  voidremoveKeyStoreManager(String name)
     Remove a KeyStore Manager.
public synchronized  voidremoveParameterFromKeyStoreManager(String manager, String name)
     Remove a parameter from the KeyStoreManager.
public synchronized  voidremoveParameterFromUserDomain(String domain, String name)
     Remove a parameter to a User Domain.
public synchronized  voidremoveUserDomain(String name)
     Remove a User Domain.
public synchronized  voidsetDefaultKeyStoreManagerName(String defKSMgr)
    
public synchronized  voidsetDefaultUserDomainName(String defUserDomain)
    
public synchronized  voidsetSSLClientAlias(java.lang.String alias)
    
public synchronized  voidsetSSLClientProtocol(String protocol)
    
public synchronized  voidsetSSLClientUseDefault(boolean flag)
    
public synchronized  voidsetSSLServerRequireClientAuth(boolean flag)
    
public  voidupdateConfigMBean(GenericConfigurationMBean configMBean)
     Convert this SecurityInstallConfig instance to GenericConfigurationMBean Properties.
public  voidupdateKeyStoreManagerProperties(GenericConfigurationMBean configMBean)
    
public  voidupdateTransportSecurityCtxProperties(GenericConfigurationMBean configMBean)
    
public  voidupdateUserDomainProperties(GenericConfigurationMBean configMBean)
    
public  voidvalidate()
     Validate the State of this Object.
throws:
  JBIException - if the state is invalid.


Constructor Detail
SecurityInstallConfig
public SecurityInstallConfig(StringTranslator translator)(Code)
Creates a new instance of SecurityInstallConfig.
Parameters:
  translator - is the StringTranslator.



SecurityInstallConfig
public SecurityInstallConfig(Document dom, StringTranslator translator) throws JBIException(Code)
Constructor to create SecurityConfiguration from DOM.
Parameters:
  translator - is the StringTranslator
Parameters:
  dom - is the dom for the Security Config data.
throws:
  JBIException - on Errors.




Method Detail
addKeyStoreManager
public synchronized void addKeyStoreManager(String name, String manager)(Code)
Add a new KeyStore Manager. If a KeyStoreManager by the specified name exists, it is overwritten with the new one.
Parameters:
  name - of the manager.
Parameters:
  manager - is the implementation class that implements the KeyStoreManager interface.



addParameterToKeyStoreManager
public synchronized void addParameterToKeyStoreManager(String manager, String name, String value)(Code)
Add a parameter to a KeyStoreManager, if it does not exist, the parameter is not added.
Parameters:
  manager - is the name of the KeyStoreManager.
Parameters:
  name - is the name of the parameter.
Parameters:
  value - is the value for the parameter.



addParameterToUserDomain
public synchronized void addParameterToUserDomain(String domain, String name, String value)(Code)
Add a parameter to a User Domain, if the domain does not exist, the parameter is not added.
Parameters:
  domain - name of the UserDomain.
Parameters:
  name - is the name of the parameter.
Parameters:
  value - is the value for the parameter.



addSecurityContexts
public void addSecurityContexts(Document dom)(Code)

Parameters:
  dom - Document to which this element is to be added.



addUserDomain
public synchronized void addUserDomain(String name, String domain)(Code)
Add a new User Domain. If a User Domain by the specified name exists, it is overwritten with the new one.
Parameters:
  name - of the domain.
Parameters:
  domain - is the implementation class that implements the UserDomain interface.



createSecurityConfiguration
public void createSecurityConfiguration(Document dom) throws JBIException(Code)
Create a SecurityConfiguration object from the dom.
Parameters:
  dom - is the dom for the Security Config data.
throws:
  JBIException - on Errors.



createSecurityInstallConfig
public static SecurityInstallConfig createSecurityInstallConfig(GenericConfigurationMBean configMBean, StringTranslator translator) throws JBIException(Code)
Create a SecurityInstallConfig from a GenericConfigurationMBean.
Parameters:
  configMBean - is the GenericConfigurationMBean which has the Properties to be used for the creation of the SecurityInstallConfig object
Parameters:
  translator - is the StringTranslator
throws:
  JBIException - if the configuration data is not sufficient/valid tocreate the SecurityConfiguration information. the created SecurityInstallConfig



filterProperties
public static Properties filterProperties(Pattern pattern, GenericConfigurationMBean configMBean)(Code)
Filter Property keys with the specified prefix.
Parameters:
  pattern - is the pattern to be matched
Parameters:
  configMBean - is the source of the Properties filtered Properties which start with the specified pattern.



filterProperties
public static Properties filterProperties(Pattern pattern, Properties srcProps)(Code)
Filter Property keys with the specified prefix.
Parameters:
  pattern - is the pattern to be matched.
Parameters:
  srcProps - are the Properties to search for a match. filtered Properties which start with the specified pattern.



generateDocument
public synchronized org.w3c.dom.Document generateDocument() throws JBIException(Code)
As the name suggests generate a DOM from the Configuration data this object holds. a DOM based on the state of this object.
throws:
  JBIException - on errors.



getDefaultKeyStoreManagerName
public String getDefaultKeyStoreManagerName()(Code)
the default KeyStore Manager.



getDefaultUserDomainName
public String getDefaultUserDomainName()(Code)
the default User Domain name.



getKeyStoreContexts
public HashMap getKeyStoreContexts()(Code)
Get a Map of KeyStore Services keyed by their name. [ Key = Name (string) : Value = KeyStoreContexts (Properties) ] a Map of KeyStore Manager keyed by their name.



getKeyStoreCtx
public String getKeyStoreCtx(String name)(Code)
Get an XML String which has the meta-data for a particular key store manager.
Parameters:
  name - is the logical name of the KeyStoreManager. If there is no such KeyStoreManager or the name is null then a empty string "" is returned. an XML String with information for a particular KeyStoreManager.



getKeyStoreCtxs
public String getKeyStoreCtxs()(Code)
Get an XML String listing all the KeyStoreManagers and their meta-data. an XML String with information for all the KeyStoreManagers.



getSSLClientAlias
public String getSSLClientAlias()(Code)
the SSL Client alias.



getSSLClientProtocol
public String getSSLClientProtocol()(Code)
the SSL Client Protocol.



getSSLClientUseDefault
public boolean getSSLClientUseDefault()(Code)
true/false inducates whether thedefault Application Server SSL context is being used or not.



getSSLServerRequireClientAuth
public boolean getSSLServerRequireClientAuth()(Code)
true/false inducates whether Client Auth is required by default.



getTransportSecurityConfig
public String getTransportSecurityConfig()(Code)
Get an XML String for the TransportSecurityContext. an XML String with information for the TransportSecurity Context.



getTransportSecurityContext
public Properties getTransportSecurityContext()(Code)
the Transport Security Properties as a Property Set.



getUserDomainContexts
public HashMap getUserDomainContexts()(Code)
Get a Map of User Domain Contexts by their name. [ Key = Name (string) : Value = UserDomain Contexts (Properties) ] a Map of User Domain Contexts by their name



getUserDomainCtx
public String getUserDomainCtx(String name)(Code)
Get an XML String which has the meta-data for a particular user domain User Domain.
Parameters:
  name - is the logical name of the UserDomain. If there is no such UserDomainor the name is null then a empty string "" is returned. an XML String with information for a particular UserDomain.



getUserDomainCtxs
public String getUserDomainCtxs()(Code)
Get an XML String listing all the UserDomains and their meta-data. an XML String with information for all the UserDomains.



removeKeyStoreManager
public synchronized void removeKeyStoreManager(String name)(Code)
Remove a KeyStore Manager.
Parameters:
  name - of the manager.



removeParameterFromKeyStoreManager
public synchronized void removeParameterFromKeyStoreManager(String manager, String name)(Code)
Remove a parameter from the KeyStoreManager.
Parameters:
  manager - is the name of the KeyStoreManager.
Parameters:
  name - is the name of the parameter.



removeParameterFromUserDomain
public synchronized void removeParameterFromUserDomain(String domain, String name)(Code)
Remove a parameter to a User Domain.
Parameters:
  domain - name of the UserDomain.
Parameters:
  name - is the name of the parameter.



removeUserDomain
public synchronized void removeUserDomain(String name)(Code)
Remove a User Domain.
Parameters:
  name - of the domain.



setDefaultKeyStoreManagerName
public synchronized void setDefaultKeyStoreManagerName(String defKSMgr)(Code)

Parameters:
  defKSMgr - is the default KeyStore Manager.



setDefaultUserDomainName
public synchronized void setDefaultUserDomainName(String defUserDomain)(Code)

Parameters:
  defUserDomain - is the default User Domain.



setSSLClientAlias
public synchronized void setSSLClientAlias(java.lang.String alias)(Code)

Parameters:
  alias - is the SSL Client alias.



setSSLClientProtocol
public synchronized void setSSLClientProtocol(String protocol)(Code)

Parameters:
  protocol - is the SSL Client protocol, allowed values are SSLv3, TLS and TLSv1



setSSLClientUseDefault
public synchronized void setSSLClientUseDefault(boolean flag)(Code)

Parameters:
  flag - - true/false inducates whether to use thedefault Application Server SSL context or not.



setSSLServerRequireClientAuth
public synchronized void setSSLServerRequireClientAuth(boolean flag)(Code)

Parameters:
  flag - - true/false inducates whether Client Auth is required by default.



updateConfigMBean
public void updateConfigMBean(GenericConfigurationMBean configMBean)(Code)
Convert this SecurityInstallConfig instance to GenericConfigurationMBean Properties. This would ideally be called before the Configuration MBean is asked to save the data or before a the getPropertyKeys() is invoked.
Parameters:
  configMBean - is the GenericConfigurationMBean which is to be updated.



updateKeyStoreManagerProperties
public void updateKeyStoreManagerProperties(GenericConfigurationMBean configMBean)(Code)

Parameters:
  configMBean - is the Configuration MBean to be updated.



updateTransportSecurityCtxProperties
public void updateTransportSecurityCtxProperties(GenericConfigurationMBean configMBean)(Code)

Parameters:
  configMBean - is the Configuration MBean to be updated.



updateUserDomainProperties
public void updateUserDomainProperties(GenericConfigurationMBean configMBean)(Code)

Parameters:
  configMBean - is the Configuration MBean to be updated.



validate
public void validate() throws JBIException(Code)
Validate the State of this Object.
throws:
  JBIException - if the state is invalid. The Message in the exceptionshould give an indication of the errorenous state.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.