Java Doc for Authorizer.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » iapi » sql » conn » 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 » Database DBMS » db derby 10.2 » org.apache.derby.iapi.sql.conn 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.derby.iapi.sql.conn.Authorizer

All known Subclasses:   org.apache.derby.impl.sql.conn.GenericAuthorizer,
Authorizer
public interface Authorizer (Code)
The Authorizer verifies a connected user has the authorization to perform a requested database operation using the current connection.

Today no object based authorization is supported.



Field Summary
final public static  intCREATE_SCHEMA_PRIV
    
final public static  intDELETE_PRIV
    
final public static  intDROP_SCHEMA_PRIV
    
final public static  intEXECUTE_PRIV
    
final public static  intINSERT_PRIV
    
final public static  intJAR_WRITE_OP
    
final public static  intMODIFY_SCHEMA_PRIV
    
final public static  intNULL_PRIV
    
final public static  intPRIV_TYPE_COUNT
    
final public static  intPROPERTY_WRITE_OP
    
final public static  StringPUBLIC_AUTHORIZATION_ID
     The public authorization ID is defined by the SQL2003 spec as implying all users.
final public static  intREFERENCES_PRIV
    
final public static  intSELECT_PRIV
    
final public static  intSQL_ARBITARY_OP
    
final public static  intSQL_CALL_OP
    
final public static  intSQL_DDL_OP
    
final public static  intSQL_SELECT_OP
    
final public static  intSQL_WRITE_OP
    
final public static  StringSYSTEM_AUTHORIZATION_ID
     The system authorization ID is defined by the SQL2003 spec as the grantor of privileges to object owners.
final public static  intTRIGGER_PRIV
    
final public static  intUPDATE_PRIV
    


Method Summary
public  voidauthorize(int operation)
     Verify the connected user is authorized to perform the requested operation. This variation should only be used with operations that do not use tables or routines.
public  voidauthorize(Activation activation, int operation)
     Verify the connected user is authorized to perform the requested operation.
public  StringgetAuthorizationId()
     Get the Authorization ID for this Authorizer.
public  booleanisReadOnlyConnection()
     Get the readOnly status for this authorizer's connection.
public  voidrefresh()
     Refresh this authorizer to reflect a change in the database permissions.
public  voidsetReadOnlyConnection(boolean on, boolean authorize)
     Set the readOnly status for this authorizer's connection.
Parameters:
  on - true means set the connection to read only mode,false means set the connection to read wrte mode.
Parameters:
  authorize - true means to verify the caller has authorityto set the connection and false means do not check.

Field Detail
CREATE_SCHEMA_PRIV
final public static int CREATE_SCHEMA_PRIV(Code)



DELETE_PRIV
final public static int DELETE_PRIV(Code)



DROP_SCHEMA_PRIV
final public static int DROP_SCHEMA_PRIV(Code)



EXECUTE_PRIV
final public static int EXECUTE_PRIV(Code)



INSERT_PRIV
final public static int INSERT_PRIV(Code)



JAR_WRITE_OP
final public static int JAR_WRITE_OP(Code)
database jar write operation



MODIFY_SCHEMA_PRIV
final public static int MODIFY_SCHEMA_PRIV(Code)



NULL_PRIV
final public static int NULL_PRIV(Code)



PRIV_TYPE_COUNT
final public static int PRIV_TYPE_COUNT(Code)



PROPERTY_WRITE_OP
final public static int PROPERTY_WRITE_OP(Code)
database property write operation



PUBLIC_AUTHORIZATION_ID
final public static String PUBLIC_AUTHORIZATION_ID(Code)
The public authorization ID is defined by the SQL2003 spec as implying all users.



REFERENCES_PRIV
final public static int REFERENCES_PRIV(Code)



SELECT_PRIV
final public static int SELECT_PRIV(Code)



SQL_ARBITARY_OP
final public static int SQL_ARBITARY_OP(Code)
Any other SQL operation



SQL_CALL_OP
final public static int SQL_CALL_OP(Code)
SQL CALL/VALUE operation



SQL_DDL_OP
final public static int SQL_DDL_OP(Code)
SQL DDL operation



SQL_SELECT_OP
final public static int SQL_SELECT_OP(Code)
SQL SELECT operation



SQL_WRITE_OP
final public static int SQL_WRITE_OP(Code)
SQL write (insert,update,delete) operation



SYSTEM_AUTHORIZATION_ID
final public static String SYSTEM_AUTHORIZATION_ID(Code)
The system authorization ID is defined by the SQL2003 spec as the grantor of privileges to object owners.



TRIGGER_PRIV
final public static int TRIGGER_PRIV(Code)



UPDATE_PRIV
final public static int UPDATE_PRIV(Code)





Method Detail
authorize
public void authorize(int operation) throws StandardException(Code)
Verify the connected user is authorized to perform the requested operation. This variation should only be used with operations that do not use tables or routines. If the operation involves tables or routines then use the variation of the authorize method that takes an Activation parameter. The activation holds the table, column, and routine lists.
Parameters:
  operation - the enumeration code for the requsted operation.
exception:
  StandardException - Thrown if the operation is not allowed



authorize
public void authorize(Activation activation, int operation) throws StandardException(Code)
Verify the connected user is authorized to perform the requested operation.
Parameters:
  activation - holds the list of tables, columns, and routines used.
Parameters:
  operation - the enumeration code for the requsted operation.
exception:
  StandardException - Thrown if the operation is not allowed



getAuthorizationId
public String getAuthorizationId()(Code)
Get the Authorization ID for this Authorizer.



isReadOnlyConnection
public boolean isReadOnlyConnection()(Code)
Get the readOnly status for this authorizer's connection.



refresh
public void refresh() throws StandardException(Code)
Refresh this authorizer to reflect a change in the database permissions.
exception:
  AuthorizerSessionException - Connect permission gone.
exception:
  StandardException - Oops.



setReadOnlyConnection
public void setReadOnlyConnection(boolean on, boolean authorize) throws StandardException(Code)
Set the readOnly status for this authorizer's connection.
Parameters:
  on - true means set the connection to read only mode,false means set the connection to read wrte mode.
Parameters:
  authorize - true means to verify the caller has authorityto set the connection and false means do not check.
exception:
  StandardException - Oops not allowed.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.