Java Doc for EJBMethodPermission.java in  » EJB-Server-JBoss-4.2.1 » j2ee » javax » security » jacc » 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 » j2ee » javax.security.jacc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.security.Permission
      javax.security.jacc.EJBMethodPermission

EJBMethodPermission
final public class EJBMethodPermission extends Permission implements Serializable(Code)
A security permission for ejb-method permissions. The name of an EJBMethodPermission contains the value of the ejb-name element in the application's deployment descriptor that identifies the target EJB. The actions of an EJBMethodPermission identifies the methods of the EJB to which the permission applies. Implementations of this class MAY implement newPermissionCollection or inherit its implementation from the super class. http://java.sun.com/j2ee/1.4/docs/api/
author:
   Scott.Stark@jboss.org
author:
   Ron Monzillo, Gary Ellison (javadoc)
version:
   $Revision: 57196 $



Constructor Summary
public  EJBMethodPermission(String name, String actions)
     Creates a new EJBMethodPermission with the specified name and actions. The name contains the value of the ejb-name element corresponding to an EJB in the application's deployment descriptor. The actions contains a methodSpec.
public  EJBMethodPermission(String ejbName, String methodInterface, Method method)
     Creates a new EJBMethodPermission with name corresponding to the EJBName and actions composed from methodInterface, and the Method object. A container uses this constructor prior to checking if a caller has permission to call the method of an EJB.
Parameters:
  ejbName - - the ejb-name of the target EJB
Parameters:
  methodInterface - - A string that may be used to specify the EJBinterface to which the permission pertains.
public  EJBMethodPermission(String ejbName, String methodName, String methodInterface, String[] methodParams)
     Creates a new EJBMethodPermission with name corresponding to the EJBName and actions composed from methodName, methodInterface, and methodParams.
Parameters:
  ejbName - - the ejb-name of the target EJB
Parameters:
  methodName - - A string that may be used to indicate the method of theEJB to which the permission pertains.

Method Summary
public  booleanequals(Object p)
     Compare two EJBMethodPermissions.
public  StringgetActions()
     Returns a String containing a canonical representation of the actions of this EJBMethodPermission.
public  inthashCode()
     Calculates the hash code as the hash of the methodName, methodInterface and methodSig for each that is non-null.
public  booleanimplies(Permission p)
     Determines if the argument Permission is "implied by" this EJBMethodPermission.
public  StringtoString()
    


Constructor Detail
EJBMethodPermission
public EJBMethodPermission(String name, String actions)(Code)
Creates a new EJBMethodPermission with the specified name and actions. The name contains the value of the ejb-name element corresponding to an EJB in the application's deployment descriptor. The actions contains a methodSpec. The syntax of the actions parameter is defined as follows: methodNameSpec ::= methodName | emptyString methodInterfaceName ::= String methodInterfaceSpec ::= methodInterfaceName | emptyString typeName ::= typeName | typeName [] methodParams ::= typeName | methodParams comma typeName methodParamsSpec ::= emptyString | methodParams methodSpec ::= null | methodNameSpec | methodNameSpec comma methodInterfaceName | methodNameSpec comma methodInterfaceSpec comma methodParamsSpec A MethodInterfaceName is a non-empty String and should contain a method-intf value as defined for use in EJB deployment descriptors. An implementation must be flexible such that it supports additional interface names especially if they are standardized by the EJB Specification. The EJB Specification currently defines the following method-intf values: { "Home", "LocalHome", "Remote", "Local", "ServiceEndpoint" } A null or empty string methodSpec indicates that the permission applies to all methods of the EJB. A methodSpec with a methodNameSpec of the empty string matches all methods of the EJB that match the methodInterface and methodParams elements of the methodSpec. A methodSpec with a methodInterfaceSpec of the empty string matches all methods of the EJB that match the methodNameSpec and methodParamsSpec elements of the methodSpec. A methodSpec without a methodParamsSpec matches all methods of the EJB that match the methodNameSpec and methodInterface elements of the methodSpec. The order of the typeNames in methodParams array must match the order of occurence of the corresponding parameters in the method signature of the target method(s). Each typeName in the methodParams must contain the canonical form of the corresponding parameter's typeName as defined by the getActions method. A methodSpec with an empty methodParamsSpec matches all 0 argument methods of the EJB that match the methodNameSpec and methodInterfaceSpec elements of the methodSpec.
Parameters:
  name - - the ejb-name to which the permission pertains.
Parameters:
  actions - - identifies the methods of the EJB to which the permissionpertains.



EJBMethodPermission
public EJBMethodPermission(String ejbName, String methodInterface, Method method)(Code)
Creates a new EJBMethodPermission with name corresponding to the EJBName and actions composed from methodInterface, and the Method object. A container uses this constructor prior to checking if a caller has permission to call the method of an EJB.
Parameters:
  ejbName - - the ejb-name of the target EJB
Parameters:
  methodInterface - - A string that may be used to specify the EJBinterface to which the permission pertains. A value of null or "",indicates that the permission pertains to all methods that match the otherparameters of the permission specification without consideration of theinterface they occur on.
Parameters:
  method - - an instance of the Java.lang.reflect.Method classcorresponding to the method that the container is trying to determinewhether the caller has permission to access. This value must not be null.



EJBMethodPermission
public EJBMethodPermission(String ejbName, String methodName, String methodInterface, String[] methodParams)(Code)
Creates a new EJBMethodPermission with name corresponding to the EJBName and actions composed from methodName, methodInterface, and methodParams.
Parameters:
  ejbName - - the ejb-name of the target EJB
Parameters:
  methodName - - A string that may be used to indicate the method of theEJB to which the permission pertains. A value of null or "" indicates thatthe permission pertains to all methods that match the other parameters ofthe permission specification without consideration of method name.
Parameters:
  methodInterface - - A string that may be used to specify the EJBinterface to which the permission pertains. A value of null or "",indicates that the permission pertains to all methods that match theother parameters of the permission specification without consideration ofthe interface they occur on.
Parameters:
  methodParams - - An array of strings that may be used to specify(by typeNames) the parameter signature of the target methods. The order ofthe typeNames in methodParams array must match the order of occurence ofthe corresponding parameters in the method signature of the targetmethod(s). Each typeName in the methodParams array must contain thecanonical form of the corresponding parameter's typeName as defined by thegetActions method. An empty methodParams array is used to represent amethod signature with no arguments. A value of null indicates that thepermission pertains to all methods that match the other parameters of thepermission specification without consideration of method signature.




Method Detail
equals
public boolean equals(Object p)(Code)
Compare two EJBMethodPermissions.
Parameters:
  p - the EJBMethodPermission instance to compare against true if p equates to this permission, false otherwise



getActions
public String getActions()(Code)
Returns a String containing a canonical representation of the actions of this EJBMethodPermission. The Canonical form of the actions of an EJBMethodPermission is described by the following syntax description. methodNameSpec ::= methodName | emptyString methodInterfaceName ::= String methodInterfaceSpec ::= methodInterfaceName | emptyString typeName ::= typeName | typeName [] methodParams ::= typeName | methodParams comma typeName methodParamsSpec ::= emptyString | methodParams methodSpec ::= null | methodName | methodNameSpec comma methodInterfaceName | methodNameSpec comma methodInterfaceSpec comma methodParamsSpec The canonical form of each typeName must begin with the fully qualified Java name of the corresponding parameter's type. The canonical form of a typeName for an array parameter is the fully qualified Java name of the array's component type followed by as many instances of the string "[]" as there are dimensions to the array. No additional characters (e.g. blanks) may occur in the canonical form. A MethodInterfaceName is a non-empty String and should contain a method-intf value as defined for use in EJB deployment descriptors. An implementation must be flexible such p it supports additional interface names especially if they are standardized by the EJB Specification. The EJB Specification currently defines the following method-intf values: { "Home", "LocalHome", "Remote", "Local", "ServiceEndpoint" } the canonicalized actions of this EJBMethodPermission



hashCode
public int hashCode()(Code)
Calculates the hash code as the hash of the methodName, methodInterface and methodSig for each that is non-null. has the method represented.



implies
public boolean implies(Permission p)(Code)
Determines if the argument Permission is "implied by" this EJBMethodPermission. For this to be the case the following must apply: The argument must be an instanceof EJBMethodPermission with name equivalent to p of this EJBMethodPermission, and the methods to which the argument permission applies (as defined in its actions) must be a subset of the methods to which this EJBMethodPermission applies (as defined in its actions). The argument permission applies to a subset of the methods to which this permission applies if all of the following conditions are met: - the method name component of the methodNameSpec of this permission is null, the empty string, or equivalent to the method name of the argument permission - the method interface component of the methodNameSpec of this permission is null, the empty string, or equivalent to the method interface of the argument permission - the method parameter list component of the methodNameSpec of this permission is null, the empty string, or equivalent to the method parameter list of the argument permission. The name and actions comparisons described above are case sensitive.
Parameters:
  p - the EJBMethodPermission checked to see if it this. true if the specified permission is implied by this object, false if not



toString
public String toString()(Code)
Method string represented by this permission [methodInterface :] methodName (params)



Methods inherited from java.security.Permission
public void checkGuard(Object object) throws SecurityException(Code)(Java Doc)
abstract public boolean equals(Object obj)(Code)(Java Doc)
abstract public String getActions()(Code)(Java Doc)
final public String getName()(Code)(Java Doc)
abstract public int hashCode()(Code)(Java Doc)
abstract public boolean implies(Permission permission)(Code)(Java Doc)
public PermissionCollection newPermissionCollection()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.