Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.sql.conn
Interface Authorizer  view Authorizer download Authorizer.java


public interface Authorizer

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
static int JAR_WRITE_OP
          database jar write operation
static int PROPERTY_WRITE_OP
          database property write operation
static int SQL_ARBITARY_OP
          Any other SQL operation
static int SQL_CALL_OP
          SQL CALL/VALUE operation
static int SQL_DDL_OP
          SQL DDL operation
static int SQL_SELECT_OP
          SQL SELECT operation
static int SQL_WRITE_OP
          SQL write (insert,update,delete) operation
 
Method Summary
 void authorize(int operation)
          Verify the connected user is authorized to perform the requested operation.
 java.lang.String getAuthorizationId()
          Get the Authorization ID for this Authorizer.
 boolean isReadOnlyConnection()
          Get the readOnly status for this authorizer's connection.
 void refresh()
          Refresh this authorizer to reflect a change in the database permissions.
 void setReadOnlyConnection(boolean on, boolean authorize)
          Set the readOnly status for this authorizer's connection.
 

Field Detail

SQL_WRITE_OP

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

See Also:
Constant Field Values

SQL_SELECT_OP

public static final int SQL_SELECT_OP
SQL SELECT operation

See Also:
Constant Field Values

SQL_ARBITARY_OP

public static final int SQL_ARBITARY_OP
Any other SQL operation

See Also:
Constant Field Values

SQL_CALL_OP

public static final int SQL_CALL_OP
SQL CALL/VALUE operation

See Also:
Constant Field Values

SQL_DDL_OP

public static final int SQL_DDL_OP
SQL DDL operation

See Also:
Constant Field Values

PROPERTY_WRITE_OP

public static final int PROPERTY_WRITE_OP
database property write operation

See Also:
Constant Field Values

JAR_WRITE_OP

public static final int JAR_WRITE_OP
database jar write operation

See Also:
Constant Field Values
Method Detail

authorize

public void authorize(int operation)
               throws org.apache.derby.iapi.error.StandardException
Verify the connected user is authorized to perform the requested operation.


getAuthorizationId

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


isReadOnlyConnection

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


setReadOnlyConnection

public void setReadOnlyConnection(boolean on,
                                  boolean authorize)
                           throws org.apache.derby.iapi.error.StandardException
Set the readOnly status for this authorizer's connection.


refresh

public void refresh()
             throws org.apache.derby.iapi.error.StandardException
Refresh this authorizer to reflect a change in the database permissions.