Java Doc for SecurityConstraint.java in  » Sevlet-Container » tomcat-catalina » org » apache » catalina » deploy » 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 » tomcat catalina » org.apache.catalina.deploy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.catalina.deploy.SecurityConstraint

SecurityConstraint
public class SecurityConstraint implements Serializable(Code)
Representation of a security constraint element for a web application, as represented in a <security-constraint> element in the deployment descriptor.

WARNING: It is assumed that instances of this class will be created and modified only within the context of a single thread, before the instance is made visible to the remainder of the application. After that, only read access is expected. Therefore, none of the read and write access within this class is synchronized.
author:
   Craig R. McClanahan
version:
   $Revision: 1.4 $ $Date: 2004/05/13 20:40:49 $




Constructor Summary
public  SecurityConstraint()
     Construct a new security constraint instance with default values.

Method Summary
public  voidaddAuthRole(String authRole)
     Add an authorization role, which is a role name that will be permitted access to the resources protected by this security constraint.
public  voidaddCollection(SecurityCollection collection)
     Add a new web resource collection to those protected by this security constraint.
public  booleanfindAuthRole(String role)
     Return true if the specified role is permitted access to the resources protected by this security constraint.
public  String[]findAuthRoles()
     Return the set of roles that are permitted access to the resources protected by this security constraint.
public  SecurityCollectionfindCollection(String name)
     Return the web resource collection for the specified name, if any; otherwise, return null.
public  SecurityCollection[]findCollections()
     Return all of the web resource collections protected by this security constraint.
public  booleangetAllRoles()
    
public  booleangetAuthConstraint()
     Return the authorization constraint present flag for this security constraint.
public  StringgetDisplayName()
     Return the display name of this security constraint.
public  StringgetUserConstraint()
     Return the user data constraint for this security constraint.
public  booleanincluded(String uri, String method)
     Return true if the specified context-relative URI (and associated HTTP method) are protected by this security constraint.
public  voidremoveAuthRole(String authRole)
     Remove the specified role from the set of roles permitted to access the resources protected by this security constraint.
public  voidremoveCollection(SecurityCollection collection)
     Remove the specified web resource collection from those protected by this security constraint.
public  voidsetAuthConstraint(boolean authConstraint)
     Set the authorization constraint present flag for this security constraint.
public  voidsetDisplayName(String displayName)
     Set the display name of this security constraint.
public  voidsetUserConstraint(String userConstraint)
     Set the user data constraint for this security constraint.
public  StringtoString()
     Return a String representation of this security constraint.


Constructor Detail
SecurityConstraint
public SecurityConstraint()(Code)
Construct a new security constraint instance with default values.




Method Detail
addAuthRole
public void addAuthRole(String authRole)(Code)
Add an authorization role, which is a role name that will be permitted access to the resources protected by this security constraint.
Parameters:
  authRole - Role name to be added



addCollection
public void addCollection(SecurityCollection collection)(Code)
Add a new web resource collection to those protected by this security constraint.
Parameters:
  collection - The new web resource collection



findAuthRole
public boolean findAuthRole(String role)(Code)
Return true if the specified role is permitted access to the resources protected by this security constraint.
Parameters:
  role - Role name to be checked



findAuthRoles
public String[] findAuthRoles()(Code)
Return the set of roles that are permitted access to the resources protected by this security constraint. If none have been defined, a zero-length array is returned (which implies that all authenticated users are permitted access).



findCollection
public SecurityCollection findCollection(String name)(Code)
Return the web resource collection for the specified name, if any; otherwise, return null.
Parameters:
  name - Web resource collection name to return



findCollections
public SecurityCollection[] findCollections()(Code)
Return all of the web resource collections protected by this security constraint. If there are none, a zero-length array is returned.



getAllRoles
public boolean getAllRoles()(Code)
Was the "all roles" wildcard included in this authentication constraint?



getAuthConstraint
public boolean getAuthConstraint()(Code)
Return the authorization constraint present flag for this security constraint.



getDisplayName
public String getDisplayName()(Code)
Return the display name of this security constraint.



getUserConstraint
public String getUserConstraint()(Code)
Return the user data constraint for this security constraint.



included
public boolean included(String uri, String method)(Code)
Return true if the specified context-relative URI (and associated HTTP method) are protected by this security constraint.
Parameters:
  uri - Context-relative URI to check
Parameters:
  method - Request method being used



removeAuthRole
public void removeAuthRole(String authRole)(Code)
Remove the specified role from the set of roles permitted to access the resources protected by this security constraint.
Parameters:
  authRole - Role name to be removed



removeCollection
public void removeCollection(SecurityCollection collection)(Code)
Remove the specified web resource collection from those protected by this security constraint.
Parameters:
  collection - Web resource collection to be removed



setAuthConstraint
public void setAuthConstraint(boolean authConstraint)(Code)
Set the authorization constraint present flag for this security constraint.



setDisplayName
public void setDisplayName(String displayName)(Code)
Set the display name of this security constraint.



setUserConstraint
public void setUserConstraint(String userConstraint)(Code)
Set the user data constraint for this security constraint.
Parameters:
  userConstraint - The new user data constraint



toString
public String toString()(Code)
Return a String representation of this security constraint.



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.