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


org.jboss.web.tomcat.security.JBossSecurityMgrRealm
   org.jboss.web.tomcat.security.JaccAuthorizationRealm

All known Subclasses:   org.jboss.web.tomcat.security.ExtendedJaccAuthorizationRealm,
JaccAuthorizationRealm
public class JaccAuthorizationRealm extends JBossSecurityMgrRealm (Code)
A subclass of JBossSecurityMgrRealm that peforms authorization based on the JACC permissions and active Policy implementation.
author:
   Scott.Stark@jboss.org
author:
   Anil.Saldhana@jboss.org
version:
   $Revision: 60856 $


Field Summary
static  Loggerlog
    
protected  Policypolicy
    

Constructor Summary
public  JaccAuthorizationRealm()
    

Method Summary
protected  booleancheckSecurityAssociation(Permission perm, Principal requestPrincpal)
     See if the given JACC permission is implied using the caller as obtained from either the PolicyContext.getContext(javax.security.auth.Subject.container) or the info associated with the requestPrincipal.
protected  booleancheckSecurityAssociation(Permission perm, Principal[] principals)
     See if the given permission is implied by the Policy.
protected  SubjectestablishSubjectContext(Principal principal)
     Ensure that the JACC PolicyContext Subject handler has access to the authenticated Subject.
public  SecurityConstraint[]findSecurityConstraints(Request request, Context context)
    
public  StringgetSecurityConstraintProviderClass()
    
public  booleanhasResourcePermission(Request request, Response response, SecurityConstraint[] securityConstraints, Context context)
    
public  booleanhasRole(Principal principal, String name)
    
public  booleanhasUserDataPermission(Request request, Response response, SecurityConstraint[] constraints)
    
public  booleanisUnprotectedResourceDelegation()
    
static  StringrequestURI(Request request)
    
public  voidsetSecurityConstraintProviderClass(String securityConstraintProviderClass)
    
public  voidsetUnprotectedResourceDelegation(boolean unprotectedResourceDelegation)
    

Field Detail
log
static Logger log(Code)



policy
protected Policy policy(Code)




Constructor Detail
JaccAuthorizationRealm
public JaccAuthorizationRealm()(Code)




Method Detail
checkSecurityAssociation
protected boolean checkSecurityAssociation(Permission perm, Principal requestPrincpal)(Code)
See if the given JACC permission is implied using the caller as obtained from either the PolicyContext.getContext(javax.security.auth.Subject.container) or the info associated with the requestPrincipal.
Parameters:
  perm - - the JACC permission to check
Parameters:
  requestPrincpal - - the http request getPrincipal true if the permission is allowed, false otherwise



checkSecurityAssociation
protected boolean checkSecurityAssociation(Permission perm, Principal[] principals)(Code)
See if the given permission is implied by the Policy. This calls Policy.implies(pd, perm) with the ProtectionDomain built from the active CodeSource set by the JaccContextValve, and the given principals.
Parameters:
  perm - - the JACC permission to evaluate
Parameters:
  principals - - the possibly null set of principals for the caller true if the permission is allowed, false otherwise



establishSubjectContext
protected Subject establishSubjectContext(Principal principal)(Code)
Ensure that the JACC PolicyContext Subject handler has access to the authenticated Subject. The caching of the authentication state by tomcat means that we need to retrieve the Subject from the JBossGenericPrincipal if the realm was not invoked to authenticate the caller.
Parameters:
  principal - - the http request getPrincipal the authenticated Subject is there is one, null otherwise



findSecurityConstraints
public SecurityConstraint[] findSecurityConstraints(Request request, Context context)(Code)
JBAS-2519:Delegate to JACC provider for unsecured resources in web.xml



getSecurityConstraintProviderClass
public String getSecurityConstraintProviderClass()(Code)
Get the Security Constraints Provider Class



hasResourcePermission
public boolean hasResourcePermission(Request request, Response response, SecurityConstraint[] securityConstraints, Context context) throws IOException(Code)



hasRole
public boolean hasRole(Principal principal, String name)(Code)



hasUserDataPermission
public boolean hasUserDataPermission(Request request, Response response, SecurityConstraint[] constraints) throws IOException(Code)



isUnprotectedResourceDelegation
public boolean isUnprotectedResourceDelegation()(Code)
Whether the delegation to JACC provider for unprotected resources is enabled



requestURI
static String requestURI(Request request)(Code)
Get the canonical request uri from the request mapping data requestPath
Parameters:
  request - the request URI path



setSecurityConstraintProviderClass
public void setSecurityConstraintProviderClass(String securityConstraintProviderClass)(Code)
Set the Security Constraints Provider Class
Parameters:
  securityConstraintProviderClass -



setUnprotectedResourceDelegation
public void setUnprotectedResourceDelegation(boolean unprotectedResourceDelegation)(Code)
Set whether the delegation to JACC provider for unprotected resources must be enabled
Parameters:
  unprotectedResourceDelegation -



Fields inherited from org.jboss.web.tomcat.security.JBossSecurityMgrRealm
static Logger log(Code)(Java Doc)

Methods inherited from org.jboss.web.tomcat.security.JBossSecurityMgrRealm
public Principal authenticate(X509Certificate[] certs)(Code)(Java Doc)
public Principal authenticate(String username, String digest, String nonce, String nc, String cnonce, String qop, String realm, String md5a2)(Code)(Java Doc)
public Principal authenticate(String username, String credentials)(Code)(Java Doc)
public Principal authenticate(String username, byte[] credentials)(Code)(Java Doc)
protected Principal getCachingPrincpal(RealmMapping realmMapping, Principal authPrincipal, Principal callerPrincipal, Object credential, Subject subject)(Code)(Java Doc)
protected String getName()(Code)(Java Doc)
protected String getPassword(String username)(Code)(Java Doc)
protected Principal getPrincipal(String username)(Code)(Java Doc)
protected Set getPrincipalRoles(Principal principal)(Code)(Java Doc)
public boolean hasResourcePermission(Request request, Response response, SecurityConstraint[] constraints, org.apache.catalina.Context context) throws IOException(Code)(Java Doc)
public boolean hasRole(Principal principal, String role)(Code)(Java Doc)
public void setCertificatePrincipal(String className)(Code)(Java Doc)
public void start() throws LifecycleException(Code)(Java Doc)
public void stop() throws LifecycleException(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.