private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.String name
Note that the name is not a "normalized" Authorization Identifier.
This is due to peculiarities of the Java Security Runtime, which
compares a javax.security.auth.Subject
's Principals
against the literal Principal name as declared in the policy files,
and not against the return value of method getName()
.
So, a normalization of names within SystemPrincipal doesn't affect
permission checking by the SecurityManager.
In order for a javax.security.auth.Subject
to be
granted permissions on the basis Authorization Identifier rules, e.g.,
for a Subject authenticated as edWard to fall under a policy clause
declared for EDWARD, the Subject has to be constructed (or augmented)
with both the literal name and the normalized Authorization Identifier.
As an alternative approach, class SystemPrincipal
could
implement the non-standard interface
com.sun.security.auth.PrincipalComparator
, which declares
a method implies(Subject)
that would allow for Principals
to match Subjects on the basis of normalized Authorization Identifiers.
But then we'd be relying upon non-standard Security Runtime behaviour.
java.lang.String host
int portNumber
java.lang.String tracingDirectory
boolean logStatus
boolean traceStatus
NetworkServerControl server
private void readObject(java.io.ObjectInputStream inputStream) throws java.lang.ClassNotFoundException, java.io.IOException
This implementation differs from the default one by initiating state validation of the object created.
java.lang.ClassNotFoundException
- if instantiating a class failsjava.io.IOException
- if reading from the stream failsint maxStatements
A value of 0
disables statement caching, negative values
are not allowed. The default is that caching is disabled.
int loginTimeout
java.lang.String databaseName
java.lang.String description
java.lang.String dataSourceName
int portNumber
java.lang.String serverName
java.lang.String user
password
property. This password property may or may not
be declared transient, and therefore may be serialized to a file in
clear-text, care must taken by the user to prevent security breaches.
Derby-406 fixshort securityMechanism
BasicClientDataSource40.getUpgradedSecurityMechanism(java.lang.String)
.
Therefore, need to keep track if the securityMechanism has been
explicitly set.boolean retrieveMessageText
java.lang.String traceFile
java.lang.String traceDirectory
boolean traceFileAppend
java.lang.String password
int sslMode
boolean createDatabase
boolean shutdownDatabase
java.lang.String connectionAttributes
int traceLevel
java.lang.String description
java.lang.String dataSourceName
java.lang.String databaseName
java.lang.String connectionAttributes
BasicEmbeddedDataSource40.setConnectionAttributes(java.lang.String)
.java.lang.String createDatabase
BasicEmbeddedDataSource40.setCreateDatabase(java.lang.String)
.java.lang.String shutdownDatabase
BasicEmbeddedDataSource40.setShutdownDatabase(java.lang.String)
.boolean attributesAsPassword
java.lang.String shortDatabaseName
shortDatabaseName
has attributes of databaseName
stripped off. See BasicEmbeddedDataSource40.databaseName
.java.lang.String password
java.lang.String user
int loginTimeout
private void readObject(java.io.ObjectInputStream inputStream) throws java.lang.ClassNotFoundException, java.io.IOException
This implementation differs from the default one by initiating state validation of the object created.
java.lang.ClassNotFoundException
- if instantiating a class failsjava.io.IOException
- if reading from the stream failsint maxStatements
A value of 0
disables statement caching, negative values
are not allowed. The default is that caching is disabled.
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException
java.io.IOException
java.lang.String actions
DatabasePermission.getActions()
.private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
java.lang.String actions
Restriction _leftChild
Restriction _rightChild
java.lang.String[] OPERATOR_SYMBOLS
java.lang.String _columnName
int _comparisonOperator
java.lang.Object _constantOperand
Restriction _leftChild
Restriction _rightChild
Apache Derby 10.13 API Documentation - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.