Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 30384 invoked from network); 31 Mar 2005 00:55:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Mar 2005 00:55:39 -0000 Received: (qmail 43983 invoked by uid 500); 31 Mar 2005 00:55:38 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 43705 invoked by uid 500); 31 Mar 2005 00:55:37 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 43621 invoked by uid 500); 31 Mar 2005 00:55:36 -0000 Delivered-To: apmail-incubator-derby-cvs@incubator.apache.org Received: (qmail 43586 invoked by uid 99); 31 Mar 2005 00:55:36 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 30 Mar 2005 16:55:31 -0800 Received: (qmail 26486 invoked by uid 65534); 31 Mar 2005 00:27:29 -0000 Message-ID: <20050331002729.26485.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: svnmailer-1.0.0-dev Date: Thu, 31 Mar 2005 00:27:29 -0000 Subject: svn commit: r159548 [10/17] - in incubator/derby/docs/trunk/src: adminguide/ devguide/ getstart/ tuning/ To: derby-cvs@incubator.apache.org From: jta@apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure26537.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure26537.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure26537.dita (original) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure26537.dita Wed Mar 3= 0 16:26:36 2005 @@ -1,143 +1,143 @@ - - - - -User authentication and authorization extended examples - - - -

The following two examples from the sample database -show how to turn on and turn off user authentication using 's -built-in user authentication and user authorization.

-/**=20 - * Turn on built-in user authentication and user authorization.=20 - *=20 - * @param conn a connection to the database. - */ - - public static void turnOnBuiltInUsers(Connection conn) throws SQLExceptio= n {=20 - System.out.println("Turning on authentication.");=20 - Statement s =3D conn.createStatement();=20 - - - // Setting and Confirming requireAuthentication=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.connection.requireAuthentication', 'true')"); - ResultSet rs =3D s.executeQuery(=20 - "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 - "'derby.connection.requireAuthentication')");=20 - rs.next();=20 - System.out.println(rs.getString(1));=20 - // Setting authentication scheme to =20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.authentication.provider', 'BUILTIN')");=20 - - // Creating some sample users=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.user.sa', 'ajaxj3x9')");=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.user.guest', 'java5w6x')");=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.user.mary', 'little7xylamb')");=20 - - // Setting default connection mode to no access=20 - // (user authorization)=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.database.defaultConnectionMode', 'noAccess')");=20 - // Confirming default connection mode=20 - rs =3D s.executeQuery ( - "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 - "'derby.database.defaultConnectionMode')");=20 - rs.next();=20 - System.out.println(rs.getString(1));=20 - - // Defining read-write users=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.database.fullAccessUsers', 'sa,mary')");=20 - - // Defining read-only users=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.database.readOnlyAccessUsers', 'guest')");=20 - - // Confirming full-access users=20 - rs =3D s.executeQuery( - "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 - "'derby.database.fullAccessUsers')");=20 - rs.next();=20 - System.out.println(rs.getString(1));=20 - - // Confirming read-only users=20 - rs =3D s.executeQuery( - "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 - "'derby.database.readOnlyAccessUsers')");=20 - rs.next();=20 - System.out.println(rs.getString(1));=20 - - //we would set the following property to TRUE only=20 - //when we were ready to deploy.=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.database.propertiesOnly', 'false')");=20 - s.close();=20 - } -/**=20 - * Turn off built-in user authentication and user authorization.=20 - *=20 - * @param conn a connection to the database. - */ - - public static void turnOffBuiltInUsers(Connection conn) throws SQLExcepti= on {=20 - Statement s =3D conn.createStatement();=20 - System.out.println("Turning off authentication.");=20 - - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.connection.requireAuthentication', 'false')");=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.authentication.provider', null)");=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.user.sa', null)");=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.user.guest', null)");=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.user.mary', null)");=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.database.defaultConnectionMode', 'fullAccess')");=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.database.fullAccessUsers', null)");=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.database.readOnlyAccessUsers', null)");=20 - s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 - "'derby.database.propertiesOnly', 'false')");=20 - - // Confirming requireAuthentication=20 - ResultSet rs =3D s.executeQuery( - "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 - "'derby.connection.requireAuthentication')");=20 - rs.next();=20 - System.out.println(rs.getString(1));=20 - - // Confirming default connection mode=20 - rs =3D s.executeQuery( - "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 - "'derby.database.defaultConnectionMode')");=20 - rs.next();=20 - System.out.println(rs.getString(1));=20 - System.out.println("Turned off all the user-related properties.");=20 - s.close();=20 - } -} - -
+ + + + +User authentication and authorization extended examples + + + +

The following two examples from the sample database +show how to turn on and turn off user authentication using 's +built-in user authentication and user authorization.

+/**=20 + * Turn on built-in user authentication and user authorization.=20 + *=20 + * @param conn a connection to the database. + */ + + public static void turnOnBuiltInUsers(Connection conn) throws SQLExceptio= n {=20 + System.out.println("Turning on authentication.");=20 + Statement s =3D conn.createStatement();=20 + + + // Setting and Confirming requireAuthentication=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.connection.requireAuthentication', 'true')"); + ResultSet rs =3D s.executeQuery(=20 + "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 + "'derby.connection.requireAuthentication')");=20 + rs.next();=20 + System.out.println(rs.getString(1));=20 + // Setting authentication scheme to =20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.authentication.provider', 'BUILTIN')");=20 + + // Creating some sample users=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.user.sa', 'ajaxj3x9')");=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.user.guest', 'java5w6x')");=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.user.mary', 'little7xylamb')");=20 + + // Setting default connection mode to no access=20 + // (user authorization)=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.database.defaultConnectionMode', 'noAccess')");=20 + // Confirming default connection mode=20 + rs =3D s.executeQuery ( + "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 + "'derby.database.defaultConnectionMode')");=20 + rs.next();=20 + System.out.println(rs.getString(1));=20 + + // Defining read-write users=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.database.fullAccessUsers', 'sa,mary')");=20 + + // Defining read-only users=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.database.readOnlyAccessUsers', 'guest')");=20 + + // Confirming full-access users=20 + rs =3D s.executeQuery( + "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 + "'derby.database.fullAccessUsers')");=20 + rs.next();=20 + System.out.println(rs.getString(1));=20 + + // Confirming read-only users=20 + rs =3D s.executeQuery( + "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 + "'derby.database.readOnlyAccessUsers')");=20 + rs.next();=20 + System.out.println(rs.getString(1));=20 + + //we would set the following property to TRUE only=20 + //when we were ready to deploy.=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.database.propertiesOnly', 'false')");=20 + s.close();=20 + } +/**=20 + * Turn off built-in user authentication and user authorization.=20 + *=20 + * @param conn a connection to the database. + */ + + public static void turnOffBuiltInUsers(Connection conn) throws SQLExcepti= on {=20 + Statement s =3D conn.createStatement();=20 + System.out.println("Turning off authentication.");=20 + + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.connection.requireAuthentication', 'false')");=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.authentication.provider', null)");=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.user.sa', null)");=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.user.guest', null)");=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.user.mary', null)");=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.database.defaultConnectionMode', 'fullAccess')");=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.database.fullAccessUsers', null)");=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.database.readOnlyAccessUsers', null)");=20 + s.executeUpdate("CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(" +=20 + "'derby.database.propertiesOnly', 'false')");=20 + + // Confirming requireAuthentication=20 + ResultSet rs =3D s.executeQuery( + "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 + "'derby.connection.requireAuthentication')");=20 + rs.next();=20 + System.out.println(rs.getString(1));=20 + + // Confirming default connection mode=20 + rs =3D s.executeQuery( + "VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_PROPERTY(" +=20 + "'derby.database.defaultConnectionMode')");=20 + rs.next();=20 + System.out.println(rs.getString(1));=20 + System.out.println("Turned off all the user-related properties.");=20 + s.close();=20 + } +} + +
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure26537.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure305.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure305.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure305.dita (original) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure305.dita Wed Mar 30 = 16:26:36 2005 @@ -1,26 +1,26 @@ - - - - -Login failure exceptions with user authentication - - - -

If user authentication is turned on and a valid user name and = password -are not provided, SQLException 08004 is raised.

-ERROR 08004: Connection refused : Invalid authentication. -
+ + + + +Login failure exceptions with user authentication + + + +

If user authentication is turned on and a valid user name and = password +are not provided, SQLException 08004 is raised.

+ERROR 08004: Connection refused : Invalid authentication. +
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure305.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure379.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure379.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure379.dita (original) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure379.dita Wed Mar 30 = 16:26:36 2005 @@ -1,27 +1,27 @@ - - - - -User authorization exceptions - - - -

If a user is not authorized to connect to the database specifi= ed in the -connection request, SQLException 04501 is raised.

-

If a user with readOnlyAccess attempts to write -to a database, SQLException 08004 - connection refused is raised.

-
+ + + + +User authorization exceptions + + + +

If a user is not authorized to connect to the database specifi= ed in the +connection request, SQLException 04501 is raised.

+

If a user with readOnlyAccess attempts to write +to a database, SQLException 08004 - connection refused is raised.

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure379.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure557.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure557.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure557.dita (original) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure557.dita Wed Mar 30 = 16:26:36 2005 @@ -1,68 +1,68 @@ - - - - - -List of user-authentication properties - -

summar= izes -the various properties related to user authentication.

-User Authentication Pr= operties - - - - -Property Name -Use - - - - -derby.connection.requireAuthentication -Turns on user authentication. - - -derby.authentication.provider -Specifies the kind of user authentication to use. - - -derby.authentication.server -For LDAP user authentication, specifies = the -location of the server. - - -derby.authentication.ldap.searchAuthDN, derby.auth= entication.ldap.searchAuthPW, .authentication.ldap= .searchFilter, and .authentication. lda= p=2EsearchBase -Configures the way DN searches are performed. - - -derby.user.UserName -Creates a user name and password for 's -built-in user repository. - - -javax.naming.* -JNDI properties - - - -
-
-
- + + + + + +List of user-authentication properties + +

summar= izes +the various properties related to user authentication.

+User Authentication Pr= operties + + + + +Property Name +Use + + + + +derby.connection.requireAuthentication +Turns on user authentication. + + +derby.authentication.provider +Specifies the kind of user authentication to use. + + +derby.authentication.server +For LDAP user authentication, specifies = the +location of the server. + + +derby.authentication.ldap.searchAuthDN, derby.auth= entication.ldap.searchAuthPW, .authentication.ldap= .searchFilter, and .authentication. lda= p=2EsearchBase +Configures the way DN searches are performed. + + +derby.user.UserName +Creates a user name and password for 's +built-in user repository. + + +javax.naming.* +JNDI properties + + + +
+
+
+ Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure557.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure608.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure608.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure608.dita (original) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure608.dita Wed Mar 30 = 16:26:36 2005 @@ -1,44 +1,44 @@ - - - - -Libraries for LDAP user authentication - - -jndidrequired for LDAP user authorization -ldap.jarrequired for LDAP user authorization -providerutil.jarrequired for LDAP user -authentication - - - - -

To use an LDAP directory service with , you need the following -libraries in your class path:

-
    -
  • jndi.jar =20 -

    JNDI classes

  • -
  • ldap.jar =20 -

    LDAP provider from Sun

  • -
  • providerutil.jar =20 -

    JNDI classes for a provider

  • -
-

doe= s not provide these libraries; they are available from Sun on -the JNDI page at Use the 1.1.x versions of these libraries, not the 1.2.x -versions. You might need to do two separate downloads to obtain all the re= quired -libraries.

-
+ + + + +Libraries for LDAP user authentication + + +jndidrequired for LDAP user authorization +ldap.jarrequired for LDAP user authorization +providerutil.jarrequired for LDAP user +authentication + + + + +

To use an LDAP directory service with , you need the following +libraries in your class path:

+
    +
  • jndi.jar =20 +

    JNDI classes

  • +
  • ldap.jar =20 +

    LDAP provider from Sun

  • +
  • providerutil.jar =20 +

    JNDI classes for a provider

  • +
+

doe= s not provide these libraries; they are available from Sun on +the JNDI page at Use the 1.1.x versions of these libraries, not the 1.2.x +versions. You might need to do two separate downloads to obtain all the re= quired +libraries.

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure608.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure622.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure622.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure622.dita (original) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure622.dita Wed Mar 30 = 16:26:36 2005 @@ -1,26 +1,26 @@ - - - - -Exceptions when using authorization identifiers - - - -

Specifying an invalid authorization identifier in a database u= ser authorization -property raises an exception. Specifying an invalid authorization identifi= er -in a connection request raises an exception.

-
+ + + + +Exceptions when using authorization identifiers + + + +

Specifying an invalid authorization identifier in a database u= ser authorization +property raises an exception. Specifying an invalid authorization identifi= er +in a connection request raises an exception.

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure622.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure766.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure766.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure766.dita (original) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure766.dita Wed Mar 30 = 16:26:36 2005 @@ -1,52 +1,52 @@ - - - - -Programming the application to provide the user and password</title= > -<prolog><metadata> -<keywords> -<indexterm>User names<indexterm>providing</indexterm></indexterm> -<indexterm>Passwords<indexterm>providing</indexterm></indexterm> -<indexterm>Passwords<indexterm>no encryption of</indexterm></indexterm> -</keywords> -</metadata> -</prolog> -<refbody> -<section><p>In the <i>DriverManager.getConnection</i> call, an application -can provide the user name and password:</p></section><section> -<ul> -<li>Separately as arguments to the following signature of the method: <i>g= etConnection(String url, String user, String password)</i> =20 -<codeblock>Connection conn =3D DriverManager.getConnection( - "jdbc:derby:myDB", "mary", "little7xylamb");</codeblock></li> -<li>As attributes to the database connection URL =20 -<codeblock>Connection conn =3D DriverManager.getConnection( - "jdbc:derby:myDB;user=3Dmary;password=3Dlittle7xylamb");</codeblock></= li> -<li>By setting the user and password properties in a Properties object as -with other connection URL attributes =20 -<codeblock>Properties p =3D new Properties(); -p.put("user", "mary"); -p.put("password", "little7xylamb"); -Connection conn =3D DriverManager.getConnection( - "jdbc:derby:myDB", p);</codeblock></li> -</ul></section><section> -<note>The password is not encrypted. When you are using <ph conref=3D"devc= onrefs.dita#prod/productshortname"></ph> in -the context of a server framework, the framework should be responsible for -encrypting the password across the network. If your framework does not enc= rypt -the password, consider using SSL. </note></section> -<section><p>For information about the treatment of user names within the <= ph conref=3D"devconrefs.dita#prod/productshortname"></ph> system, -see <xref href=3D"cdevcsecure37241.dita#cdevcsecure37241"/>.</p></section> -</refbody></reference> +<?xml version=3D"1.0" encoding=3D"utf-8"?> +<!--=20 +Copyright 1997, 2004 The Apache Software Foundation or its licensors, as a= pplicable. =20 + +Licensed under the Apache License, Version 2.0 (the "License"); =20 +you may not use this file except in compliance with the License. =20 +You may obtain a copy of the License at =20 + + http://www.apache.org/licenses/LICENSE-2.0 =20 + +Unless required by applicable law or agreed to in writing, software =20 +distributed under the License is distributed on an "AS IS" BASIS, =20 +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. =20 +See the License for the specific language governing permissions and =20 +limitations under the License. +--> +<!DOCTYPE reference PUBLIC "-//IBM//DTD DITA Reference//EN" "../dtd/refere= nce.dtd"> +<reference xml:lang=3D"en-us" id=3D"rdevcsecure766"> +<title>Programming the application to provide the user and password + + +User namesproviding +Passwordsproviding +Passwordsno encryption of + + + + +

In the DriverManager.getConnection call, an application +can provide the user name and password:

+
    +
  • Separately as arguments to the following signature of the method: g= etConnection(String url, String user, String password) =20 +Connection conn =3D DriverManager.getConnection( + "jdbc:derby:myDB", "mary", "little7xylamb");
  • +
  • As attributes to the database connection URL =20 +Connection conn =3D DriverManager.getConnection( + "jdbc:derby:myDB;user=3Dmary;password=3Dlittle7xylamb"); +
  • By setting the user and password properties in a Properties object as +with other connection URL attributes =20 +Properties p =3D new Properties(); +p.put("user", "mary"); +p.put("password", "little7xylamb"); +Connection conn =3D DriverManager.getConnection( + "jdbc:derby:myDB", p);
  • +
+The password is not encrypted. When you are using in +the context of a server framework, the framework should be responsible for +encrypting the password across the network. If your framework does not enc= rypt +the password, consider using SSL.
+

For information about the treatment of user names within the <= ph conref=3D"devconrefs.dita#prod/productshortname"> system, +see .

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure766.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871065.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871065.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871065.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871065.dita Wed Mar = 30 16:26:36 2005 @@ -1,25 +1,25 @@ - - - - -permission java.lang.RuntimePermission createClassLoader - - - -

Mandatory. It allows to execute SQL queries and supports loading -class files from jar files stored in the database.

-
+ + + + +permission java.lang.RuntimePermission createClassLoader + + + +

Mandatory. It allows to execute SQL queries and supports loading +class files from jar files stored in the database.

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871065.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871126.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871126.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871126.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871126.dita Wed Mar = 30 16:26:36 2005 @@ -1,26 +1,26 @@ - - - - -permission java.util.PropertyPermission "derby.*", read - - - -

Allows to read individual properties set in the JVM's -system set. If the action is denied, properties in the JVM's system set -are ignored.

-
+ + + + +permission java.util.PropertyPermission "derby.*", read + + + +

Allows to read individual properties set in the JVM's +system set. If the action is denied, properties in the JVM's system set +are ignored.

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871126.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871193.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871193.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871193.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871193.dita Wed Mar = 30 16:26:36 2005 @@ -1,26 +1,26 @@ - - - - -permission java.io.FilePermission "directory${/}/-", "read,write,de= lete" - - - -

Allows to manage files within the database that maps to the -directory specified. For read-only databases, only the "read" action -needs to be granted.

-
+ + + + +permission java.io.FilePermission "directory${/}/-", "read,write,de= lete" + + + +

Allows to manage files within the database that maps to the +directory specified. For read-only databases, only the "read" action +needs to be granted.

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871193.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871260.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871260.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871260.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871260.dita Wed Mar = 30 16:26:36 2005 @@ -1,25 +1,25 @@ - - - - -permission java.io.FilePermission "${derby.system.home}", "read,wri= te" - - - -

Allows to determine the system directory when set by db2j.system.home a= nd create it if needed. If the system directory already -exists then only the "read" permission needs to be granted.

-
+ + + + +permission java.io.FilePermission "${derby.system.home}", "read,wri= te" + + + +

Allows to determine the system directory when set by db2j.system.home a= nd create it if needed. If the system directory already +exists then only the "read" permission needs to be granted.

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871260.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871279.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871279.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871279.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871279.dita Wed Mar = 30 16:26:36 2005 @@ -1,24 +1,24 @@ - - - - -permission java.util.PropertyPermission "user.dir", "read" - - - -

Permits access to the system directory value if derby.syste= m=2Ehome is not set or no permission has been granted to read the derby.system.home property.

-
+ + + + +permission java.util.PropertyPermission "user.dir", "read" + + + +

Permits access to the system directory value if derby.syste= m=2Ehome is not set or no permission has been granted to read the derby.system.home property.

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871279.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871300.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871300.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871300.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871300.dita Wed Mar = 30 16:26:36 2005 @@ -1,24 +1,24 @@ - - - - -permission java.io.FilePermission "${derby.system.home}${/}derby.pr= operties", "read" - - - -

Allows to read the system properties file from the system directory.

- + + + + +permission java.io.FilePermission "${derby.system.home}${/}derby.pr= operties", "read" + + + +

Allows to read the system properties file from the system directory.

+ Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871300.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871315.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871315.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871315.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871315.dita Wed Mar = 30 16:26:36 2005 @@ -1,24 +1,24 @@ - - - - -permission java.io.FilePermission "${derby.system.home}${/}derby.lo= g", "read,write,delete" - - - -

or

-
+ + + + +permission java.io.FilePermission "${derby.system.home}${/}derby.lo= g", "read,write,delete" + + + +

or

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871315.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871330.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871330.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871330.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871330.dita Wed Mar = 30 16:26:36 2005 @@ -1,27 +1,27 @@ - - - - -permission java.io.FilePermission "${user.dir}${/}derby.log", "read= ,write,delete" - - - -

Only one of these permissions is needed. Permits the applicati= on to read, -write, and delete to the log file, unless the log has been re-directed. -(See the derby.stream.error properties in for more information.) If one of the= requested valid actions is denied, -the log will be= java.lang.System.err.

-
+ + + + +permission java.io.FilePermission "${user.dir}${/}derby.log", "read= ,write,delete" + + + +

Only one of these permissions is needed. Permits the applicati= on to read, +write, and delete to the log file, unless the log has been re-directed. +(See the derby.stream.error properties in for more information.) If one of the= requested valid actions is denied, +the log will be= java.lang.System.err.

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871330.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871372.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871372.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871372.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871372.dita Wed Mar = 30 16:26:36 2005 @@ -1,25 +1,25 @@ - - - - -permission java.io.FilePermission "${derby.system.home}/-", "read,w= rite,delete" - - - -

Allows the engine complete access to the system directory and -any databases contained in the system directory.

-
+ + + + +permission java.io.FilePermission "${derby.system.home}/-", "read,w= rite,delete" + + + +

Allows the engine complete access to the system directory and +any databases contained in the system directory.

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871372.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871406.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871406.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871406.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871406.dita Wed Mar = 30 16:26:36 2005 @@ -1,38 +1,38 @@ - - - - -Java 2 security policy file example 1 - - - -/* Grants permission to run and access all */ -/* databases under the system home */ -/* when it is specified by the system property */ -/* .system.home = */ - -/* Note .system.= home must be an absolute pathname */ - -grant codeBase "file://f://lib/derby.jar" { - - permission java.lang.RuntimePermission "createClassLoader"; - permission java.util.PropertyPermission "derby.*", "read"; - - permission java.io.FilePermission "${derby.system.home}${/} --", "read,write,delete"; -}; - + + + + +Java 2 security policy file example 1 + + + +/* Grants permission to run and access all */ +/* databases under the system home */ +/* when it is specified by the system property */ +/* .system.home = */ + +/* Note .system.= home must be an absolute pathname */ + +grant codeBase "file://f://lib/derby.jar" { + + permission java.lang.RuntimePermission "createClassLoader"; + permission java.util.PropertyPermission "derby.*", "read"; + + permission java.io.FilePermission "${derby.system.home}${/} +-", "read,write,delete"; +}; + Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871406.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871422.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871422.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871422.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871422.dita Wed Mar = 30 16:26:36 2005 @@ -1,37 +1,37 @@ - - - - -Java 2 security policy file example 2 - - - -/* Grants permission to run and access all */ -/* databases under the system home */ -/* when it defaults to the current directory */ - - -grant codeBase "file://f://lib/derby.jar" { - permission java.lang.RuntimePermission "createClassLoader"; - permission java.util.PropertyPermission "derby.*", "read"; -=20 - permission java.util.PropertyPermission "user.dir", "read"; - permission java.io.FilePermission "${user.dir}${/}-", - "read,write,delete"; - -}; - + + + + +Java 2 security policy file example 2 + + + +/* Grants permission to run and access all */ +/* databases under the system home */ +/* when it defaults to the current directory */ + + +grant codeBase "file://f://lib/derby.jar" { + permission java.lang.RuntimePermission "createClassLoader"; + permission java.util.PropertyPermission "derby.*", "read"; +=20 + permission java.util.PropertyPermission "user.dir", "read"; + permission java.io.FilePermission "${user.dir}${/}-", + "read,write,delete"; + +}; + Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871422.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure871439.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure871439.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure871439.dita (origina= l) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure871439.dita Wed Mar = 30 16:26:36 2005 @@ -1,41 +1,41 @@ - - - - -Java 2 security policy file example 3 - - - -/* Grants permission to run and access a single */ -/* database (salesdb) under the system home */ - -/* Note .system.= home must be an absolute pathname */ - -grant codeBase "file://f://lib/derby.jar" { - - permission java.lang.RuntimePermission "createClassLoader"; - permission java.util.PropertyPermission "derby.*", "read"; - - permission java.io.FilePermission "${derby.system.home}${/}*",=20 -"read,write,delete"; - permission java.io.FilePermission "${derby.system.home}${/} -salesdb${/} --", "read,write,delete"; - - -}; - + + + + +Java 2 security policy file example 3 + + + +/* Grants permission to run and access a single */ +/* database (salesdb) under the system home */ + +/* Note .system.= home must be an absolute pathname */ + +grant codeBase "file://f://lib/derby.jar" { + + permission java.lang.RuntimePermission "createClassLoader"; + permission java.util.PropertyPermission "derby.*", "read"; + + permission java.io.FilePermission "${derby.system.home}${/}*",=20 +"read,write,delete"; + permission java.io.FilePermission "${derby.system.home}${/} +salesdb${/} +-", "read,write,delete"; + + +}; + Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure871439.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevcsecure935.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevcsecure935.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevcsecure935.dita (original) +++ incubator/derby/docs/trunk/src/devguide/rdevcsecure935.dita Wed Mar 30 = 16:26:36 2005 @@ -1,27 +1,27 @@ - - - - -Notes on user authorization - - - -

All the authorization properties are set for a connection when= it is created. -Changing any of the authorization properties does not affect existing conn= ections. -However, all future connections are affected by the change.

-

For more information about authorization identifiers, see .

-
+ + + + +Notes on user authorization + + + +

All the authorization properties are set for a connection when= it is created. +Changing any of the authorization properties does not affect existing conn= ections. +However, all future connections are affected by the change.

+

For more information about authorization identifiers, see .

+
Propchange: incubator/derby/docs/trunk/src/devguide/rdevcsecure935.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevdeploy856845.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevdeploy856845.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevdeploy856845.dita (original) +++ incubator/derby/docs/trunk/src/devguide/rdevdeploy856845.dita Wed Mar 3= 0 16:26:36 2005 @@ -1,32 +1,32 @@ - - - - -Installing jar files - - - --- SQL statement -CALL sqlj.install_jar( - 'tours.jar', 'APP.Sample1', 0) - --- SQL statement --- using a quoted identifier for the=20 --- jar name -CALL sqlj.install_jar( - 'tours.jar', 'APP."Sample2"', 0) - + + + + +Installing jar files + + + +-- SQL statement +CALL sqlj.install_jar( + 'tours.jar', 'APP.Sample1', 0) + +-- SQL statement +-- using a quoted identifier for the=20 +-- jar name +CALL sqlj.install_jar( + 'tours.jar', 'APP."Sample2"', 0) + Propchange: incubator/derby/docs/trunk/src/devguide/rdevdeploy856845.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native Modified: incubator/derby/docs/trunk/src/devguide/rdevdeploy856880.dita URL: http://svn.apache.org/viewcvs/incubator/derby/docs/trunk/src/devguide/= rdevdeploy856880.dita?view=3Ddiff&r1=3D159547&r2=3D159548 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/derby/docs/trunk/src/devguide/rdevdeploy856880.dita (original) +++ incubator/derby/docs/trunk/src/devguide/rdevdeploy856880.dita Wed Mar 3= 0 16:26:36 2005 @@ -1,26 +1,26 @@ - - - - -Removing jar files - - - --- SQL statement -CALL sqlj.remove_jar( - 'APP.Sample1', 0) - + + + + +Removing jar files + + + +-- SQL statement +CALL sqlj.remove_jar( + 'APP.Sample1', 0) + Propchange: incubator/derby/docs/trunk/src/devguide/rdevdeploy856880.dita ---------------------------------------------------------------------------= --- svn:eol-style =3D native