Java Doc for JaasSecurityDomain.java in  » EJB-Server-JBoss-4.2.1 » security » org » jboss » security » plugins » 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 » EJB Server JBoss 4.2.1 » security » org.jboss.security.plugins 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jboss.security.plugins.JaasSecurityManager
   org.jboss.security.plugins.JaasSecurityDomain

JaasSecurityDomain
public class JaasSecurityDomain extends JaasSecurityManager implements SecurityDomain,JaasSecurityDomainMBean(Code)
The JaasSecurityDomain is an extension of JaasSecurityManager that addes the notion of a KeyStore, and JSSE KeyManagerFactory and TrustManagerFactory for supporting SSL and other cryptographic use cases. Attributes:
  • KeyStoreType: The implementation type name being used, defaults to 'JKS'.
  • KeyStoreURL: Set the KeyStore database URL string. This is used to obtain an InputStream to initialize the KeyStore. If the string is not a value URL, its treated as a file.
  • KeyStorePass: the password used to load the KeyStore. Its format is one of:
    • The plaintext password for the KeyStore(or whatever format is used by the KeyStore). The toCharArray() value of the string is used without any manipulation.
    • A command to execute to obtain the plaintext password. The format is '{EXT}...' where the '...' is the exact command line that will be passed to the Runtime.exec(String) method to execute a platform command. The first line of the command output is used as the password.
    • A class to create to obtain the plaintext password. The format is '{CLASS}classname[:ctorarg]' where the '[:ctorarg]' is an optional string delimited by the ':' from the classname that will be passed to the classname ctor. The password is obtained from classname by invoking a 'char[] toCharArray()' method if found, otherwise, the 'String toString()' method is used.
    The KeyStorePass is also used in combination with the Salt and IterationCount attributes to create a PBE secret key used with the encode/decode operations.
  • ManagerServiceName: The JMX object name string of the security manager service that the domain registers with to function as a security manager for the security domain name passed to the ctor. The makes the JaasSecurityDomain available under the standard JNDI java:/jaas/(domain) binding.
  • LoadSunJSSEProvider: A flag indicating if the Sun com.sun.net.ssl.internal.ssl.Provider security provider should be loaded on startup. This is needed when using the Sun JSSE jars without them installed as an extension with JDK 1.3. This should be set to false with JDK 1.4 or when using an alternate JSSE provider
  • Salt:
  • IterationCount:

author:
   Scott.Stark@jboss.org
author:
   Jason Essington
version:
   $Revision: 59905 $



Constructor Summary
public  JaasSecurityDomain()
     Creates a default JaasSecurityDomain for with a securityDomain name of 'other'.
public  JaasSecurityDomain(String securityDomain)
     Creates a JaasSecurityDomain for with a securityDomain name of that given by the 'securityDomain' argument.
public  JaasSecurityDomain(String securityDomain, CallbackHandler handler)
     Creates a JaasSecurityDomain for with a securityDomain name of that given by the 'securityDomain' argument.

Method Summary
public  byte[]decode(byte[] secret)
     Decrypt the secret using the cipherKey.
Parameters:
  secret - - the encrypted secret to decrypt.
public  byte[]decode64(String secret)
     Decrypt the base64 encoded secret using the cipherKey.
Parameters:
  secret - - the base64 encoded encrypted secret to decrypt.
public  byte[]encode(byte[] secret)
     Encrypt the secret using the cipherKey.
public  Stringencode64(byte[] secret)
     Encrypt the secret using the cipherKey and return a base64 encoding.
public  StringgetCipherAlgorithm()
    
public  KeyManagerFactorygetKeyManagerFactory()
    
public  KeyStoregetKeyStore()
    
public  StringgetKeyStoreType()
    
public  StringgetKeyStoreURL()
    
public  ObjectNamegetManagerServiceName()
     The JMX object name string of the security manager service.
public  StringgetName()
    
public  TrustManagerFactorygetTrustManagerFactory()
    
public  KeyStoregetTrustStore()
    
public  StringgetTrustStoreType()
    
public  StringgetTrustStoreURL()
    
public  voidreloadKeyAndTrustStore()
    
public  voidsetCipherAlgorithm(String cipherAlgorithm)
    
public  voidsetIterationCount(int iterationCount)
    
public  voidsetKeyStorePass(String password)
    
public  voidsetKeyStoreType(String type)
    
public  voidsetKeyStoreURL(String storeURL)
    
public  voidsetManagerServiceName(ObjectName managerServiceName)
     Set the JMX object name string of the security manager service.
public  voidsetSalt(String salt)
    
public  voidsetTrustStorePass(String password)
    
public  voidsetTrustStoreType(String type)
    
public  voidsetTrustStoreURL(String storeURL)
    
protected  voidstartService()
    
protected  voidstopService()
    


Constructor Detail
JaasSecurityDomain
public JaasSecurityDomain()(Code)
Creates a default JaasSecurityDomain for with a securityDomain name of 'other'.



JaasSecurityDomain
public JaasSecurityDomain(String securityDomain)(Code)
Creates a JaasSecurityDomain for with a securityDomain name of that given by the 'securityDomain' argument.
Parameters:
  securityDomain - , the name of the security domain



JaasSecurityDomain
public JaasSecurityDomain(String securityDomain, CallbackHandler handler)(Code)
Creates a JaasSecurityDomain for with a securityDomain name of that given by the 'securityDomain' argument.
Parameters:
  securityDomain - , the name of the security domain
Parameters:
  handler - , the CallbackHandler to use to obtain login module info




Method Detail
decode
public byte[] decode(byte[] secret) throws Exception(Code)
Decrypt the secret using the cipherKey.
Parameters:
  secret - - the encrypted secret to decrypt. the decrypted secret
throws:
  Exception -



decode64
public byte[] decode64(String secret) throws Exception(Code)
Decrypt the base64 encoded secret using the cipherKey.
Parameters:
  secret - - the base64 encoded encrypted secret to decrypt. the decrypted secret
throws:
  Exception -



encode
public byte[] encode(byte[] secret) throws Exception(Code)
Encrypt the secret using the cipherKey.
Parameters:
  secret - - the plaintext secret to encrypt the encrypted secret
throws:
  Exception -



encode64
public String encode64(byte[] secret) throws Exception(Code)
Encrypt the secret using the cipherKey and return a base64 encoding.
Parameters:
  secret - - the plaintext secret to encrypt the encrypted secret as a base64 string
throws:
  Exception -



getCipherAlgorithm
public String getCipherAlgorithm()(Code)



getKeyManagerFactory
public KeyManagerFactory getKeyManagerFactory() throws SecurityException(Code)



getKeyStore
public KeyStore getKeyStore() throws SecurityException(Code)



getKeyStoreType
public String getKeyStoreType()(Code)



getKeyStoreURL
public String getKeyStoreURL()(Code)



getManagerServiceName
public ObjectName getManagerServiceName()(Code)
The JMX object name string of the security manager service. The JMX object name string of the security manager service.



getName
public String getName()(Code)



getTrustManagerFactory
public TrustManagerFactory getTrustManagerFactory() throws SecurityException(Code)



getTrustStore
public KeyStore getTrustStore() throws SecurityException(Code)



getTrustStoreType
public String getTrustStoreType()(Code)



getTrustStoreURL
public String getTrustStoreURL()(Code)



reloadKeyAndTrustStore
public void reloadKeyAndTrustStore() throws Exception(Code)
Reload the key- and truststore



setCipherAlgorithm
public void setCipherAlgorithm(String cipherAlgorithm)(Code)



setIterationCount
public void setIterationCount(int iterationCount)(Code)



setKeyStorePass
public void setKeyStorePass(String password) throws Exception(Code)



setKeyStoreType
public void setKeyStoreType(String type)(Code)



setKeyStoreURL
public void setKeyStoreURL(String storeURL) throws IOException(Code)



setManagerServiceName
public void setManagerServiceName(ObjectName managerServiceName)(Code)
Set the JMX object name string of the security manager service.



setSalt
public void setSalt(String salt)(Code)



setTrustStorePass
public void setTrustStorePass(String password)(Code)



setTrustStoreType
public void setTrustStoreType(String type)(Code)



setTrustStoreURL
public void setTrustStoreURL(String storeURL) throws IOException(Code)



startService
protected void startService() throws Exception(Code)



stopService
protected void stopService()(Code)



Fields inherited from org.jboss.security.plugins.JaasSecurityManager
protected Logger log(Code)(Java Doc)
protected boolean trace(Code)(Java Doc)

Methods inherited from org.jboss.security.plugins.JaasSecurityManager
protected boolean doesRoleGroupHaveRole(Principal role, Group userRoles)(Code)(Java Doc)
public boolean doesUserHaveRole(Principal principal, Set rolePrincipals)(Code)(Java Doc)
public boolean doesUserHaveRole(Principal principal, Principal role)(Code)(Java Doc)
public void flushCache()(Code)(Java Doc)
public Subject getActiveSubject()(Code)(Java Doc)
public Principal getPrincipal(Principal principal)(Code)(Java Doc)
public String getSecurityDomain()(Code)(Java Doc)
public Set getUserRoles(Principal principal)(Code)(Java Doc)
public boolean isValid(Principal principal, Object credential)(Code)(Java Doc)
public boolean isValid(Principal principal, Object credential, Subject activeSubject)(Code)(Java Doc)
public void setCachePolicy(CachePolicy domainCache)(Code)(Java Doc)
public void setDeepCopySubjectOption(Boolean flag)(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.