psman.dbi
Class CryptedDBI

java.lang.Object
  |
  +--psman.dbi.CryptedDBI
All Implemented Interfaces:
DBI

public class CryptedDBI
extends java.lang.Object
implements DBI

Crypto Layer between the real DBI and the application for content encryption.

Note on char[]/byte[] conversion: highbyte from char[i] goes into byte[2*i] and lowbyte from char[i] into byte[2*i+1].
Note on Key generation: Although it uses toCharArray instead of getBytes on the supplied passphrase, and therefor has many zero bytes in usual encodings, there is at least the same amount of entropy which goes into the hash algorithm.

Version:
$Id: CryptedDBI.java,v 1.7 2004/06/16 10:55:46 sts Exp $
Author:
Thomas Kriegelstein

Field Summary
static boolean debug
          Debugflag.
 
Fields inherited from interface psman.dbi.DBI
APPELRULESET, CATEGORY, CERTIFICATE, CERTIFICATE_PUBLIC_KEY, CHAIN, CONFIGURATION, DATA_FIELD, DATA_FIELD_CATEGORY, DATA_FIELD_CERTIFICATE, DISCLOSURE_PURPOSE, DISCLOSURE_RECIPIENT, MASTER, PERSON, PROPERTY, PROPERTY_CERTIFICATE, PSEUDONYM, PSEUDONYM_PROPERTY, PSEUDONYM_PSEUDONYM_TYPE, PSEUDONYM_TYPE, PUBLIC_KEY, PUBLIC_KEY_CERTIFICATE, PURPOSE, RECIPIENT, ROLE, ROLE_TPARTNER_PSEUDONYM_TYPE, RULE, SECRET_KEY, T_PARTNER, T_PARTNER_TYPE, TABLE_NAME, TRANSACTION, TRANSACTION_DATA_FIELD, TYPE
 
Constructor Summary
CryptedDBI(psman.dbi.DBI dbi)
          Constructor.
 
Method Summary
 java.lang.Object[][] appelRuleSetTable()
          Parse the database and return all sets of appel rules.
 java.lang.Object[][] categoryTable()
          Parse the database and return all category records.
 java.lang.Object[][] certificateTable()
          Parse the database and return all certificate records.
 java.lang.Object[][] chainTable()
          Parse the database and return all chain records.
 java.lang.Object[][] configurationTable()
          Parse the database and return all configuration records.
 void connect(java.util.Properties data)
          Connect to the database.
 void create()
          Create all predefined database tables in correct order.
 void create(int table)
          Create a predefined database table.
 java.lang.Object[][] dataFieldTable()
          Parse the database and return all data field records.
 int delete(psman.data.AppelRuleSet data)
          Delete a set of appel rules.
 int delete(psman.data.Category data)
          Delete a category.
 int delete(psman.data.Certificate data)
          Delete a certificate.
 int delete(psman.data.Chain data)
          Delete a chain.
 int delete(psman.data.Configuration data)
          Delete a configuration.
 int delete(psman.data.DataField data)
          Delete a data field.
 int delete(psman.data.Person data)
          Delete a person.
 int delete(psman.data.Property data)
          Delete a property.
 int delete(psman.data.Pseudonym data)
          Delete a pseudonym.
 int delete(psman.data.PseudonymType data)
          Delete a pseudonym type.
 int delete(psman.data.PublicKey data)
          Delete a public key.
 int delete(psman.data.Purpose data)
          Delete a purpose.
 int delete(psman.data.Recipient data)
          Delete a recipient.
 int delete(psman.data.Role data)
          Delete a role.
 int delete(psman.data.Role data1, psman.data.TPartner data2)
          Removes all bindings to a pseudonym type for the given context.
 int delete(psman.data.Rule data)
          Delete a rule.
 int delete(psman.data.SecretKey data)
          Delete a secret key.
 int delete(psman.data.TPartner data)
          Delete a transaction partner.
 int delete(psman.data.Type data)
          Delete a type.
 void disconnect()
          Disconnect from the database.
 void drop()
          Drop all tables from the database in correct order.
 void drop(int table)
          Drop the tables from the database.
 int insert(psman.data.AppelRuleSet data)
          Create a set of appel rules.
 int insert(psman.data.Category data)
          Create a category.
 int insert(psman.data.Certificate data)
          Create a certificate.
 int insert(psman.data.Certificate data, psman.data.PublicKey key)
          Insert link between certificate and its test-key.
 int insert(psman.data.Chain data)
          Create a chain.
 int insert(psman.data.Configuration data)
          Create a pseudonym type.
 int insert(psman.data.DataField data)
          Create a data field.
 int insert(psman.data.DataField data, psman.data.Category[] bindings)
          Insert data field categories.
 int insert(psman.data.DataField data, psman.data.Certificate[] bindings)
          Insert data field certificates.
 int insert(psman.data.Person data)
          Create a person entry.
 int insert(psman.data.Property data)
          Create a property entry.
 int insert(psman.data.Property data, psman.data.Certificate[] bindings)
          Insert property certificates.
 int insert(psman.data.Pseudonym data)
          Create a pseudonym entry.
 int insert(psman.data.Pseudonym data, psman.data.Property[] bindings)
          Link pseudonym to properties.
 int insert(psman.data.Pseudonym data, psman.data.PseudonymType[] bindings)
          Link pseudonym to pseudonym types.
 int insert(psman.data.PseudonymType data)
          Create a pseudonym type entry.
 int insert(psman.data.PublicKey data)
          Create a public key entry.
 int insert(psman.data.PublicKey data, psman.data.Certificate[] bindings)
          Insert public key certificates.
 int insert(psman.data.Purpose data)
          Create a purpose.
 int insert(psman.data.Recipient data)
          Create a recipient.
 int insert(psman.data.Role data)
          Create a role entry.
 int insert(psman.data.Role data1, psman.data.TPartner data2, psman.data.PseudonymType binding)
          Inserts a binding to a pseudonym type for the given context.
 int insert(psman.data.Rule data)
          Create a rule entry.
 int insert(psman.data.SecretKey data)
          Create a secret key entry.
 int insert(psman.data.TPartner data)
          Create a transaction partner entry.
 int insert(psman.data.TPartner data, psman.data.Type[] bindings)
          Insert transaction partner types.
 int insert(psman.data.Transaction data)
          Create a transaction entry.
 int insert(psman.data.Transaction data, psman.data.DataField[] bindings)
          Insert transaction data fields.
 int insert(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Purpose[] bindings)
          Insert purpose for disclosure.
 int insert(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Recipient[] bindings)
          Insert recipient for disclosure.
 int insert(psman.data.Type data)
          Create a type entry.
 boolean isConnected()
          Tell the database connection status.
 boolean isReadOnly()
          Return the database read-only state.
 java.lang.Object[][] personTable()
          Parse the database and return all person records.
 java.lang.Object[][] propertyTable()
          Parse the database and return all properties.
 java.lang.Object[][] pseudonymTable()
          Parse the database and return all pseudonym records.
 java.lang.Object[][] pseudonymTypeTable()
          Parse the database and return all pseudonym type records.
 java.lang.Object[][] publicKeyTable()
          Parse the database and return all public keys.
 java.lang.Object[][] purposeTable()
          Parse the database and return all purpose records.
 java.lang.Object[][] recipientTable()
          Parse the database and return all recipient records.
 java.lang.Object[][] roleTable()
          Parse the database and return all roles.
 java.lang.Object[][] ruleTable()
          Parse the database and return all rules.
 java.lang.Object[][] secretKeyTable()
          Parse the database and return all secret keys.
 psman.data.AppelRuleSet[] selectAppelRuleSet()
          Get all sets of appel rules.
 psman.data.AppelRuleSet selectAppelRuleSet(java.lang.String id)
          Select a set of appel rules by its key.
 psman.data.Category[] selectCategory()
          Get all category records.
 psman.data.Category[] selectCategory(psman.data.DataField field)
          Select all category records belonging to a certain data field.
 psman.data.Category selectCategory(int id)
          Select a category by its ID.
 psman.data.Category selectCategory(java.lang.String name)
          Select a category by its name.
 psman.data.Certificate[] selectCertificate()
          Get all certificate records.
 psman.data.Certificate selectCertificate(byte[] id)
          Select a certificate by its ID.
 psman.data.Certificate[] selectCertificate(psman.data.DataField field)
          Select all certificate records belonging to a certain data field.
 psman.data.Certificate[] selectCertificate(psman.data.Property prop)
          Select all certificate records belonging to a certain property.
 psman.data.Certificate[] selectCertificate(psman.data.PublicKey key, boolean isTestKey)
          Select all certificate records belonging to a certain public key.
 psman.data.Certificate[] selectCertificate(psman.data.PublicKey signedKey, psman.data.PublicKey[] signKeys)
          Selects certificates which certify the signedKey with one of the signKeys.
 psman.data.Chain[] selectChain()
          Get all chain records.
 psman.data.Chain selectChain(int id)
          Select a chain by its ID.
 psman.data.Chain selectChain(java.lang.String name)
          Select a chain by its name.
 psman.data.Configuration[] selectConfiguration()
          Get all Configuration records.
 psman.data.Configuration selectConfiguration(java.lang.String id)
          Select Configuration by its key.
 psman.data.DataField[] selectDataField()
          Get all data field records.
 psman.data.DataField[] selectDataField(psman.data.Certificate cert)
          Select data fields by their certificate.
 psman.data.DataField selectDataField(int id)
          Select a data field by its ID.
 psman.data.DataField[] selectDataField(java.lang.String name)
          Select a data field by its name.
 psman.data.DataField[] selectDataField(java.lang.String name, psman.data.TPartner owner)
          Select a data field by its name and owner.
 psman.data.DataField[] selectDataField(psman.data.TPartner owner)
          Select a data field by its owner.
 psman.data.DataField selectDataField(psman.data.TPartner owner, java.lang.String name, java.util.Date valid_from, java.util.Date valid_until)
          Select a data field by its properties.
 psman.data.DataField[] selectDataField(psman.data.Transaction trans)
          Select all data fields belonging to a certain transaction.
 psman.data.Person[] selectPerson()
          Get all person records.
 psman.data.Person selectPerson(int id)
          Select a person by its ID.
 psman.data.Person selectPerson(java.lang.String name)
          Select a person by its name.
 psman.data.Property[] selectProperty()
          Select all properties in the database.
 psman.data.Property selectProperty(int id)
          Select a property by its ID.
 psman.data.Property[] selectProperty(psman.data.Pseudonym nym)
          Select all properties bound to a certain pseudonym.
 psman.data.Property selectProperty(java.lang.String name)
          Select a property by its name.
 psman.data.Pseudonym[] selectPseudonym()
          Select all pseudonym records in the database.
 psman.data.Pseudonym selectPseudonym(int id)
          Select a pseudonym by its ID.
 psman.data.Pseudonym[] selectPseudonym(psman.data.Property prop)
          Select pseudonyms by a property.
 psman.data.Pseudonym[] selectPseudonym(psman.data.PseudonymType type)
          Select pseudonym by their type.
 psman.data.Pseudonym[] selectPseudonym(psman.data.Role role)
          Select pseudonyms by role.
 psman.data.Pseudonym[] selectPseudonym(psman.data.Role data1, psman.data.TPartner data2)
          Select pseudonyms by role and transaction partner.
 psman.data.Pseudonym selectPseudonym(psman.data.SecretKey key)
          Select a pseudonym by its master key.
 psman.data.Pseudonym selectPseudonym(java.lang.String name)
          Select a pseudonym by its name.
 psman.data.Pseudonym[] selectPseudonym(psman.data.TPartner partner)
          Select pseudonyms by a transaction partner.
 psman.data.PseudonymType[] selectPseudonymType()
          Select all pseudonym types in the database.
 psman.data.PseudonymType selectPseudonymType(int id)
          Select a pseudonym type by its ID.
 psman.data.PseudonymType[] selectPseudonymType(psman.data.Pseudonym nym)
          Select all pseudonym types for the given Pseudonym.
 psman.data.PseudonymType[] selectPseudonymType(psman.data.Role role)
          Select pseudonym types, which where used under a given role.
 psman.data.PseudonymType selectPseudonymType(psman.data.Role data1, psman.data.TPartner data2)
          Select pseudonym types, which where used in communication with a given partner under a given role.
 psman.data.PseudonymType selectPseudonymType(java.lang.String name)
          Select a pseudonym type by its name.
 psman.data.PseudonymType[] selectPseudonymType(psman.data.TPartner partner)
          Select pseudonym types, which where used in communication with a given partner.
 psman.data.PublicKey[] selectPublicKey()
          Get all public keys.
 psman.data.PublicKey selectPublicKey(byte[] id)
          Get a public key.
 psman.data.PublicKey[] selectPublicKey(psman.data.Certificate cert, boolean areTestKeys)
          Get public keys belonging to a certain certificate.
 psman.data.Purpose[] selectPurpose()
          Get all purpose records.
 psman.data.Purpose selectPurpose(int id)
          Select a purpose by its ID.
 psman.data.Purpose selectPurpose(java.lang.String name)
          Select a purpose by its name.
 psman.data.Purpose[] selectPurpose(psman.data.Transaction data1, psman.data.DataField data2)
          Select all purposes belonging to a certain data disclosure.
 psman.data.Recipient[] selectRecipient()
          Get all recipient records.
 psman.data.Recipient selectRecipient(int id)
          Select a recipient by its ID.
 psman.data.Recipient selectRecipient(java.lang.String name)
          Select a recipient by its name.
 psman.data.Recipient[] selectRecipient(psman.data.Transaction data1, psman.data.DataField data2)
          Select all recipients belonging to a certain data disclosure.
 psman.data.Role[] selectRole()
          Get all roles.
 psman.data.Role selectRole(int id)
          Select a role by its ID.
 psman.data.Role selectRole(java.lang.String name)
          Select a role by its name.
 psman.data.Rule[] selectRule()
          Get all rules.
 psman.data.Rule selectRule(int chain, int rank)
          Select a rule by its chain and rank.
 psman.data.SecretKey[] selectSecretKey()
          Get all secret keys.
 psman.data.SecretKey selectSecretKey(byte[] id)
          Get a secret key.
 psman.data.TPartner[] selectTPartner()
          Get all transaction partner records.
 psman.data.TPartner selectTPartner(int id)
          Select a transaction partner by its ID.
 psman.data.TPartner selectTPartner(psman.data.PublicKey key)
          Select a transaction partner by its public key.
 psman.data.TPartner selectTPartner(java.lang.String name)
          Select a transaction partner by its name.
 psman.data.TPartner[] selectTPartner(psman.data.Type type)
          Select transaction partners by their type.
 psman.data.Transaction[] selectTransaction()
          Get all transaction records.
 psman.data.Transaction[] selectTransaction(psman.data.DataField df)
          Select all transaction, in which a given data field was received or transmitted.
 psman.data.Transaction selectTransaction(java.util.Date start, java.util.Date stop, psman.data.Pseudonym pseudonym, psman.data.TPartner partner)
          Select a transaction by its ID.
 psman.data.Transaction selectTransaction(int id)
          Select a transaction by its ID.
 psman.data.Transaction[] selectTransaction(psman.data.Pseudonym nym)
          Select transactions by used pseudonym.
 psman.data.Transaction[] selectTransaction(psman.data.Role role)
          Select a transaction by used role.
 psman.data.Transaction[] selectTransaction(psman.data.Role data1, psman.data.TPartner data2)
          Select a transaction by used role and transaction partner.
 psman.data.Transaction[] selectTransaction(psman.data.TPartner partner)
          Select transactions by transaction partner.
 psman.data.Type[] selectType()
          Get all type records.
 psman.data.Type selectType(int id)
          Select a type by its ID.
 psman.data.Type selectType(java.lang.String name)
          Select a type by its name.
 psman.data.Type[] selectType(psman.data.TPartner partner)
          Select all types bound to a certain transaction partner.
 int set(psman.data.DataField data, psman.data.Category[] bindings)
          Update a data field's categories.
 int set(psman.data.DataField data, psman.data.Certificate[] bindings)
          Update a data field's certificates.
 int set(psman.data.Property data, psman.data.Certificate[] bindings)
          set a property's certificates.
 int set(psman.data.Pseudonym data, psman.data.Property[] bindings)
          Update pseudonyms properties.
 int set(psman.data.Pseudonym data, psman.data.PseudonymType[] bindings)
          Update pseudonyms pseudonym types.
 int set(psman.data.PublicKey data, psman.data.Certificate[] bindings)
          Update a public key's certificates.
 int set(psman.data.TPartner data, psman.data.Type[] bindings)
          Update transaction partner types.
 int set(psman.data.Transaction data, psman.data.DataField[] bindings)
          Update transaction datafields.
 java.lang.Object[][] tPartnerTable()
          Get all transaction partner records.
 java.lang.Object[][] transactionTable()
          Get all transaction records.
 java.lang.Object[][] typeTable()
          Get all type records.
 int update(psman.data.AppelRuleSet data)
          Update a set of appel rules.
 int update(psman.data.Category data)
          Update a category.
 int update(psman.data.Chain data)
          Update a chain.
 int update(psman.data.Chain chain, int rank, psman.data.Rule data)
          Update a rule.
 int update(psman.data.Configuration data)
          Update a configuration.
 int update(psman.data.DataField data)
          Update a data field.
 int update(psman.data.Person data)
          Update a person.
 int update(psman.data.Property data)
          Update a property.
 int update(psman.data.Pseudonym data)
          Update a pseudonym.
 int update(psman.data.PseudonymType data)
          Update a pseudonym type.
 int update(psman.data.Purpose data)
          Update a purpose.
 int update(psman.data.Recipient data)
          Update a recipient.
 int update(psman.data.Role data)
          Update a role.
 int update(psman.data.Role data1, psman.data.TPartner data2, psman.data.PseudonymType binding)
          Updates a binding to a pseudonym type for the given context.
 int update(psman.data.TPartner data)
          Update a transaction partner.
 int update(psman.data.Transaction data)
          Update a transaction entry.
 int update(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Purpose[] bindings)
          Update transaction datafield purpose.
 int update(psman.data.Transaction data1, psman.data.DataField data2, psman.data.Recipient[] bindings)
          Update transaction datafield recipients.
 int update(psman.data.Type data)
          Update a type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug
Debugflag.

Constructor Detail

CryptedDBI

public CryptedDBI(psman.dbi.DBI dbi)
Constructor.

Method Detail

appelRuleSetTable

public java.lang.Object[][] appelRuleSetTable()
                                       throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all sets of appel rules. This method is designed for the graphical user interface.

Specified by:
appelRuleSetTable in interface DBI
Returns:
The arrays of all sets in the database.
Throws:
java.lang.Exception - if a database access error occurs.

categoryTable

public java.lang.Object[][] categoryTable()
                                   throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all category records. This method is designed for the graphical user interface.

Specified by:
categoryTable in interface DBI
Returns:
The arrays of all categories in the database.
Throws:
java.lang.Exception - if a database access error occurs.

purposeTable

public java.lang.Object[][] purposeTable()
                                  throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all purpose records. This method is designed for the graphical user interface.

Specified by:
purposeTable in interface DBI
Returns:
The arrays of all purposes in the database.
Throws:
java.lang.Exception - if a database access error occurs.

recipientTable

public java.lang.Object[][] recipientTable()
                                    throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all recipient records. This method is designed for the graphical user interface.

Specified by:
recipientTable in interface DBI
Returns:
The arrays of all recipients in the database.
Throws:
java.lang.Exception - if a database access error occurs.

chainTable

public java.lang.Object[][] chainTable()
                                throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all chain records. This method is designed for the graphical user interface.

Specified by:
chainTable in interface DBI
Returns:
The arrays of all chains in the database.
Throws:
java.lang.Exception - if a database access error occurs.

roleTable

public java.lang.Object[][] roleTable()
                               throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all roles. This method is designed for the graphical user interface.

Specified by:
roleTable in interface DBI
Returns:
Alle roles in the database.
Throws:
java.lang.Exception - if a database access error occurs.

ruleTable

public java.lang.Object[][] ruleTable()
                               throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all rules. This method is designed for the graphical user interface.

Specified by:
ruleTable in interface DBI
Returns:
Alle rules in the database.
Throws:
java.lang.Exception - if a database access error occurs.

transactionTable

public java.lang.Object[][] transactionTable()
                                      throws java.lang.Exception
Description copied from interface: DBI
Get all transaction records.

Specified by:
transactionTable in interface DBI
Returns:
The arrays of all transactions in the database.
Throws:
java.lang.Exception - if a database access error occurs.

typeTable

public java.lang.Object[][] typeTable()
                               throws java.lang.Exception
Description copied from interface: DBI
Get all type records.

Specified by:
typeTable in interface DBI
Returns:
The arrays of all types in the database.
Throws:
java.lang.Exception - if a database access error occurs.

certificateTable

public java.lang.Object[][] certificateTable()
                                      throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all certificate records. This method is designed for the graphical user interface.

Specified by:
certificateTable in interface DBI
Returns:
The arrays of all certificates in the database.
Throws:
java.lang.Exception - if a database access error occurs.

configurationTable

public java.lang.Object[][] configurationTable()
                                        throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all configuration records. This method is designed for the graphical user interface.

Specified by:
configurationTable in interface DBI
Returns:
The array of all configurations in the database.
Throws:
java.lang.Exception - if a database access error occurs.

dataFieldTable

public java.lang.Object[][] dataFieldTable()
                                    throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all data field records. This method is designed for the graphical user interface.

Specified by:
dataFieldTable in interface DBI
Returns:
The arrays of all data fields in the database.
Throws:
java.lang.Exception - if a database access error occurs.

personTable

public java.lang.Object[][] personTable()
                                 throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all person records. This method is designed for the graphical user interface.

Specified by:
personTable in interface DBI
Returns:
The arrays of all persons in the database.
Throws:
java.lang.Exception - if a database access error occurs.

propertyTable

public java.lang.Object[][] propertyTable()
                                   throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all properties. This method is designed for the graphical user interface.

Specified by:
propertyTable in interface DBI
Returns:
the records of all properties
Throws:
java.lang.Exception - if a database access error occurs.

pseudonymTable

public java.lang.Object[][] pseudonymTable()
                                    throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all pseudonym records. This method is designed for the graphical user interface.

Specified by:
pseudonymTable in interface DBI
Returns:
the array of all existing pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

pseudonymTypeTable

public java.lang.Object[][] pseudonymTypeTable()
                                        throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all pseudonym type records. This method is designed for the graphical user interface.

Specified by:
pseudonymTypeTable in interface DBI
Returns:
the array of all existing pseudonym types
Throws:
java.lang.Exception - if a database access error occurs.

publicKeyTable

public java.lang.Object[][] publicKeyTable()
                                    throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all public keys. This method is designed for the graphical user interface.

Specified by:
publicKeyTable in interface DBI
Returns:
The arrays of all public keys in the database.
Throws:
java.lang.Exception - if a database access error occurs.

secretKeyTable

public java.lang.Object[][] secretKeyTable()
                                    throws java.lang.Exception
Description copied from interface: DBI
Parse the database and return all secret keys. This method is designed for the graphical user interface.

Specified by:
secretKeyTable in interface DBI
Returns:
The arrays of all secret keys in the database.
Throws:
java.lang.Exception - if a database access error occurs.

tPartnerTable

public java.lang.Object[][] tPartnerTable()
                                   throws java.lang.Exception
Description copied from interface: DBI
Get all transaction partner records.

Specified by:
tPartnerTable in interface DBI
Returns:
The arrays of all transaction partners in the database.
Throws:
java.lang.Exception - if a database access error occurs.

disconnect

public void disconnect()
                throws java.lang.Exception
Description copied from interface: DBI
Disconnect from the database.

Specified by:
disconnect in interface DBI
Throws:
java.lang.Exception - if a database access error occurs.

drop

public void drop()
          throws java.lang.Exception
Description copied from interface: DBI
Drop all tables from the database in correct order. The order may depend on references between several tables.

Specified by:
drop in interface DBI
Throws:
java.lang.Exception - if a database access error occurs.
See Also:
DBI.create()

drop

public void drop(int table)
          throws java.lang.Exception
Description copied from interface: DBI
Drop the tables from the database.

Specified by:
drop in interface DBI
Parameters:
table - ID of the table to be dropped.
Throws:
java.lang.Exception - if a database access error occurs.
See Also:
the table IDs, DBI.create()

connect

public void connect(java.util.Properties data)
             throws java.lang.Exception
Description copied from interface: DBI
Connect to the database.

Specified by:
connect in interface DBI
Parameters:
data - the connection parameters. Take a look at the implementing classes to find out which connection parameters are required.
Throws:
java.lang.Exception - if a database access error occurs.

create

public void create()
            throws java.lang.Exception
Description copied from interface: DBI
Create all predefined database tables in correct order. The order may depend on references between several tables.

Specified by:
create in interface DBI
Throws:
java.lang.Exception - if a database access error occurs.
See Also:
DBI.drop()

create

public void create(int table)
            throws java.lang.Exception
Description copied from interface: DBI
Create a predefined database table.

Specified by:
create in interface DBI
Parameters:
table - ID of the table to be created.
Throws:
java.lang.Exception - if a database access error occurs.
See Also:
the table IDs, DBI.drop(int)

isConnected

public boolean isConnected()
Description copied from interface: DBI
Tell the database connection status.

Specified by:
isConnected in interface DBI
Returns:
true if the database is connected, false otherwise.

isReadOnly

public boolean isReadOnly()
                   throws java.lang.Exception
Description copied from interface: DBI
Return the database read-only state.

Specified by:
isReadOnly in interface DBI
Returns:
true if database is in read-only state, false otherwise.
java.lang.Exception

delete

public int delete(psman.data.AppelRuleSet data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a set of appel rules.

Specified by:
delete in interface DBI
Parameters:
data - the set to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the set could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Purpose data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a purpose.

Specified by:
delete in interface DBI
Parameters:
data - the purpose to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the purpose could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Recipient data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a recipient.

Specified by:
delete in interface DBI
Parameters:
data - the recipient to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the recipient could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Category data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a category.

Specified by:
delete in interface DBI
Parameters:
data - the category to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the category could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Certificate data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a certificate.

Specified by:
delete in interface DBI
Parameters:
data - the certificate to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the certificate could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Chain data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a chain.

Specified by:
delete in interface DBI
Parameters:
data - the chain to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the chain could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Configuration data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a configuration.

Specified by:
delete in interface DBI
Parameters:
data - the configuration to be removed from the database.
Returns:
1 if the deleteion was successfull, 0 if the configuration could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.DataField data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a data field.

Specified by:
delete in interface DBI
Parameters:
data - the data field to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the data field could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Person data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a person.

Specified by:
delete in interface DBI
Parameters:
data - the person to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the person could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Property data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a property.

Specified by:
delete in interface DBI
Parameters:
data - the property to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the property could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Pseudonym data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a pseudonym.

Specified by:
delete in interface DBI
Parameters:
data - the pseudonym to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the pseudonym could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.PseudonymType data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a pseudonym type.

Specified by:
delete in interface DBI
Parameters:
data - the pseudonym type to be removed.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.PublicKey data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a public key.

Specified by:
delete in interface DBI
Parameters:
data - the public key to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the public key could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Role data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a role.

Specified by:
delete in interface DBI
Parameters:
data - the role to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the role could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Rule data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a rule.

Specified by:
delete in interface DBI
Parameters:
data - the rule to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the rule could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.SecretKey data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a secret key.

Specified by:
delete in interface DBI
Parameters:
data - the secret key to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the secret key could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.TPartner data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a transaction partner.

Specified by:
delete in interface DBI
Parameters:
data - the transaction partner to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the transaction partner could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Type data)
           throws java.lang.Exception
Description copied from interface: DBI
Delete a type.

Specified by:
delete in interface DBI
Parameters:
data - the type to be removed from the database.
Returns:
1 if the deletion was successfull, 0 if the type could not be found.
Throws:
java.lang.Exception - if a database access error occurs.

delete

public int delete(psman.data.Role data1,
                  psman.data.TPartner data2)
           throws java.lang.Exception
Description copied from interface: DBI
Removes all bindings to a pseudonym type for the given context.

Specified by:
delete in interface DBI
Parameters:
data1 - role of the user.
data2 - current transaction partner, maybe null.
Returns:
1 on success, 0 if database has not been changed.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Purpose data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a purpose.

Specified by:
insert in interface DBI
Parameters:
data - the purpose to be inserted into the database. If the purpose's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Recipient data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a recipient.

Specified by:
insert in interface DBI
Parameters:
data - the recipient to be inserted into the database. If the recipient's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Category data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a category.

Specified by:
insert in interface DBI
Parameters:
data - the category to be inserted into the database. If the category's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Chain data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a chain.

Specified by:
insert in interface DBI
Parameters:
data - the chain to be inserted into the database. If the chain's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Role data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a role entry.

Specified by:
insert in interface DBI
Parameters:
data - the role object to be inserted into the database. If the role's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Rule data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a rule entry.

Specified by:
insert in interface DBI
Parameters:
data - the rule object to be inserted into the database. If the rule's rank is -1, an auto-incremented new rank will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Transaction data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a transaction entry.

Specified by:
insert in interface DBI
Parameters:
data - the transaction to be inserted into the database. If the transaction's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Type data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a type entry.

Specified by:
insert in interface DBI
Parameters:
data - the type to be inserted into the database. If the type's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Certificate data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a certificate.

Specified by:
insert in interface DBI
Parameters:
data - the certificate to be inserted into the database.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Configuration data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a pseudonym type.

Specified by:
insert in interface DBI
Parameters:
data - the pseudonym type to be inserted into the database. If the pseudonym type's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.AppelRuleSet data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a set of appel rules.

Specified by:
insert in interface DBI
Parameters:
data - the set to be inserted into the database. If the set's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.DataField data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a data field.

Specified by:
insert in interface DBI
Parameters:
data - the data field to be inserted into the database. If the data field's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Person data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a person entry.

Specified by:
insert in interface DBI
Parameters:
data - the person to be inserted into the database. If the person's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Property data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a property entry.

Specified by:
insert in interface DBI
Parameters:
data - the property to be inserted. If the property's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Pseudonym data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a pseudonym entry.

Specified by:
insert in interface DBI
Parameters:
data - the name of the pseudonym to be inserted into the database. If the pseudonym's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.PseudonymType data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a pseudonym type entry.

Specified by:
insert in interface DBI
Parameters:
data - the name of the pseudonym type to be inserted into the database. If the pseudonym type's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.PublicKey data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a public key entry.

Specified by:
insert in interface DBI
Parameters:
data - the public key object to be inserted into the database.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.SecretKey data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a secret key entry.

Specified by:
insert in interface DBI
Parameters:
data - the secret key object to be inserted into the database.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.TPartner data)
           throws java.lang.Exception
Description copied from interface: DBI
Create a transaction partner entry.

Specified by:
insert in interface DBI
Parameters:
data - the transaction partner to be inserted into the database. If the transaction partner's ID is 0, an auto-incremented new ID will be assigned to it.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Role data1,
                  psman.data.TPartner data2,
                  psman.data.PseudonymType binding)
           throws java.lang.Exception
Description copied from interface: DBI
Inserts a binding to a pseudonym type for the given context.

Specified by:
insert in interface DBI
Parameters:
data1 - role of the user.
data2 - current transaction partner, maybe null.
binding - pseudonymtype to use.
Returns:
1 on success, 0 if database has not been changed.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Certificate data,
                  psman.data.PublicKey key)
           throws java.lang.Exception
Description copied from interface: DBI
Insert link between certificate and its test-key.

Specified by:
insert in interface DBI
Parameters:
data - the certificate, which can be verified with the testkey.
key - the testkey.
Returns:
1 if the insertion was successfull, 0 if not.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.DataField data,
                  psman.data.Category[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Insert data field categories.

Specified by:
insert in interface DBI
Parameters:
data - the data field, categories are bound to.
bindings - the according categories.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.DataField data,
                  psman.data.Certificate[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Insert data field certificates.

Specified by:
insert in interface DBI
Parameters:
data - the data field, certificates are bound to.
bindings - the according certificates.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Property data,
                  psman.data.Certificate[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Insert property certificates.

Specified by:
insert in interface DBI
Parameters:
data - the property, certificates are bound to.
bindings - the according certificate.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Pseudonym data,
                  psman.data.Property[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Link pseudonym to properties.

Specified by:
insert in interface DBI
Parameters:
data - the pseudonym, properties are bound to.
bindings - the according properties.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Pseudonym data,
                  psman.data.PseudonymType[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Link pseudonym to pseudonym types.

Specified by:
insert in interface DBI
Parameters:
data - the pseudonym, types are bound to.
bindings - the according pseudonym types.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.PublicKey data,
                  psman.data.Certificate[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Insert public key certificates.

Specified by:
insert in interface DBI
Parameters:
data - the public key, certificates are bound to.
bindings - the according certificates.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.TPartner data,
                  psman.data.Type[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Insert transaction partner types.

Specified by:
insert in interface DBI
Parameters:
data - the transaction partner, types are bound to.
bindings - the according types.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Transaction data,
                  psman.data.DataField[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Insert transaction data fields.

Specified by:
insert in interface DBI
Parameters:
data - the transaction, data fields are bound to.
bindings - the according data fields.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Transaction data1,
                  psman.data.DataField data2,
                  psman.data.Purpose[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Insert purpose for disclosure.

Specified by:
insert in interface DBI
Parameters:
data1 - the transaction, where data has been disclosed.
data2 - the disclosed data.
bindings - purposes for the disclosure.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

insert

public int insert(psman.data.Transaction data1,
                  psman.data.DataField data2,
                  psman.data.Recipient[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Insert recipient for disclosure.

Specified by:
insert in interface DBI
Parameters:
data1 - the transaction, where data has been disclosed.
data2 - the disclosed data.
bindings - recipient for the disclosure.
Returns:
the count of inserted bindings, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType selectPseudonymType(psman.data.Role data1,
                                                    psman.data.TPartner data2)
                                             throws java.lang.Exception
Description copied from interface: DBI
Select pseudonym types, which where used in communication with a given partner under a given role.

Specified by:
selectPseudonymType in interface DBI
Parameters:
data1 - the role
data2 - the partner
Returns:
an array containing all pseudonym types used with the given partner and role.
Throws:
java.lang.Exception - if a database error occurs.

selectTransaction

public psman.data.Transaction selectTransaction(java.util.Date start,
                                                java.util.Date stop,
                                                psman.data.Pseudonym pseudonym,
                                                psman.data.TPartner partner)
                                         throws java.lang.Exception
Description copied from interface: DBI
Select a transaction by its ID.

Specified by:
selectTransaction in interface DBI
Returns:
the specified transaction
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction selectTransaction(int id)
                                         throws java.lang.Exception
Description copied from interface: DBI
Select a transaction by its ID.

Specified by:
selectTransaction in interface DBI
Parameters:
id - the database ID of the transaction
Returns:
the specified transaction
Throws:
java.lang.Exception - if a database access error occurs.

selectCategory

public psman.data.Category selectCategory(int id)
                                   throws java.lang.Exception
Description copied from interface: DBI
Select a category by its ID.

Specified by:
selectCategory in interface DBI
Parameters:
id - the database ID of the category.
Returns:
the specified category, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectCategory

public psman.data.Category selectCategory(java.lang.String name)
                                   throws java.lang.Exception
Description copied from interface: DBI
Select a category by its name.

Specified by:
selectCategory in interface DBI
Parameters:
name - the name of the category.
Returns:
the specified category, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectPurpose

public psman.data.Purpose selectPurpose(int id)
                                 throws java.lang.Exception
Description copied from interface: DBI
Select a purpose by its ID.

Specified by:
selectPurpose in interface DBI
Parameters:
id - the database ID of the purpose.
Returns:
the specified purpose, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectPurpose

public psman.data.Purpose selectPurpose(java.lang.String name)
                                 throws java.lang.Exception
Description copied from interface: DBI
Select a purpose by its name.

Specified by:
selectPurpose in interface DBI
Parameters:
name - the name of the purpose.
Returns:
the specified purpose, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectRecipient

public psman.data.Recipient selectRecipient(int id)
                                     throws java.lang.Exception
Description copied from interface: DBI
Select a recipient by its ID.

Specified by:
selectRecipient in interface DBI
Parameters:
id - the database ID of the recipient.
Returns:
the specified recipient, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectRecipient

public psman.data.Recipient selectRecipient(java.lang.String name)
                                     throws java.lang.Exception
Description copied from interface: DBI
Select a recipient by its name.

Specified by:
selectRecipient in interface DBI
Parameters:
name - the name of the recipient.
Returns:
the specified recipient, null if it cannot be found.
Throws:
java.lang.Exception - if a database access error occurs.

selectChain

public psman.data.Chain selectChain(int id)
                             throws java.lang.Exception
Description copied from interface: DBI
Select a chain by its ID.

Specified by:
selectChain in interface DBI
Parameters:
id - the database ID of the chain
Returns:
the specified chain
Throws:
java.lang.Exception - if a database access error occurs.

selectChain

public psman.data.Chain selectChain(java.lang.String name)
                             throws java.lang.Exception
Description copied from interface: DBI
Select a chain by its name.

Specified by:
selectChain in interface DBI
Parameters:
name - the name of the chain
Returns:
the specified chain
Throws:
java.lang.Exception - if a database access error occurs.

selectRole

public psman.data.Role selectRole(int id)
                           throws java.lang.Exception
Description copied from interface: DBI
Select a role by its ID.

Specified by:
selectRole in interface DBI
Parameters:
id - the database ID of the role
Returns:
the specified role
Throws:
java.lang.Exception - if a database access error occurs.

selectRole

public psman.data.Role selectRole(java.lang.String name)
                           throws java.lang.Exception
Description copied from interface: DBI
Select a role by its name.

Specified by:
selectRole in interface DBI
Parameters:
name - the name of the role
Returns:
the specified role
Throws:
java.lang.Exception - if a database access error occurs.

selectRule

public psman.data.Rule selectRule(int chain,
                                  int rank)
                           throws java.lang.Exception
Description copied from interface: DBI
Select a rule by its chain and rank.

Specified by:
selectRule in interface DBI
Parameters:
chain - the chain ID of the role
rank - the rank of the role
Returns:
the specified rule
Throws:
java.lang.Exception - if a database access error occurs.

selectType

public psman.data.Type selectType(int id)
                           throws java.lang.Exception
Description copied from interface: DBI
Select a type by its ID.

Specified by:
selectType in interface DBI
Parameters:
id - the database ID of the type
Returns:
the specified type
Throws:
java.lang.Exception - if a database access error occurs.

selectType

public psman.data.Type selectType(java.lang.String name)
                           throws java.lang.Exception
Description copied from interface: DBI
Select a type by its name.

Specified by:
selectType in interface DBI
Parameters:
name - the name of the type
Returns:
the specified type
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate selectCertificate(byte[] id)
                                         throws java.lang.Exception
Description copied from interface: DBI
Select a certificate by its ID.

Specified by:
selectCertificate in interface DBI
Parameters:
id - the database ID of the certificate
Returns:
the specified certificate
Throws:
java.lang.Exception - if a database access error occurs.

selectConfiguration

public psman.data.Configuration selectConfiguration(java.lang.String id)
                                             throws java.lang.Exception
Description copied from interface: DBI
Select Configuration by its key.

Specified by:
selectConfiguration in interface DBI
Parameters:
id - the key
Returns:
the belonging configuration
Throws:
java.lang.Exception - if a database access error occurs.

selectAppelRuleSet

public psman.data.AppelRuleSet selectAppelRuleSet(java.lang.String id)
                                           throws java.lang.Exception
Description copied from interface: DBI
Select a set of appel rules by its key.

Specified by:
selectAppelRuleSet in interface DBI
Parameters:
id - the key
Returns:
the belonging set
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField selectDataField(int id)
                                     throws java.lang.Exception
Description copied from interface: DBI
Select a data field by its ID.

Specified by:
selectDataField in interface DBI
Parameters:
id - the database ID of the data field
Returns:
the specified data field
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField selectDataField(psman.data.TPartner owner,
                                            java.lang.String name,
                                            java.util.Date valid_from,
                                            java.util.Date valid_until)
                                     throws java.lang.Exception
Description copied from interface: DBI
Select a data field by its properties.

Specified by:
selectDataField in interface DBI
Parameters:
owner - the owner of the data field
name - the name of the data field
valid_from - the valid_from of the data field
valid_until - the valid_until of the data field
Returns:
the specified data field
Throws:
java.lang.Exception - if a database access error occurs.

selectPerson

public psman.data.Person selectPerson(int id)
                               throws java.lang.Exception
Description copied from interface: DBI
Select a person by its ID.

Specified by:
selectPerson in interface DBI
Parameters:
id - the database ID of the person
Returns:
the specified person
Throws:
java.lang.Exception - if a database access error occurs.

selectPerson

public psman.data.Person selectPerson(java.lang.String name)
                               throws java.lang.Exception
Description copied from interface: DBI
Select a person by its name.

Specified by:
selectPerson in interface DBI
Parameters:
name - the name of the person
Returns:
the specified person
Throws:
java.lang.Exception - if a database access error occurs.

selectProperty

public psman.data.Property selectProperty(java.lang.String name)
                                   throws java.lang.Exception
Description copied from interface: DBI
Select a property by its name.

Specified by:
selectProperty in interface DBI
Parameters:
name - the name of the property
Returns:
the specified property
Throws:
java.lang.Exception - if a database access error occurs.

selectProperty

public psman.data.Property selectProperty(int id)
                                   throws java.lang.Exception
Description copied from interface: DBI
Select a property by its ID.

Specified by:
selectProperty in interface DBI
Parameters:
id - the database ID of the property
Returns:
the specified property
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym selectPseudonym(int id)
                                     throws java.lang.Exception
Description copied from interface: DBI
Select a pseudonym by its ID.

Specified by:
selectPseudonym in interface DBI
Parameters:
id - the database ID of the pseudonym
Returns:
the specified pseudonym
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym selectPseudonym(psman.data.SecretKey key)
                                     throws java.lang.Exception
Description copied from interface: DBI
Select a pseudonym by its master key.

Specified by:
selectPseudonym in interface DBI
Parameters:
key - the master key of the pseudonym
Returns:
the specified pseudonym
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym selectPseudonym(java.lang.String name)
                                     throws java.lang.Exception
Description copied from interface: DBI
Select a pseudonym by its name. If the pseudonym name does not exist in the database, null is returned.

Specified by:
selectPseudonym in interface DBI
Parameters:
name - the name of the pseudonym
Returns:
the specified pseudonym
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType selectPseudonymType(int id)
                                             throws java.lang.Exception
Description copied from interface: DBI
Select a pseudonym type by its ID.

Specified by:
selectPseudonymType in interface DBI
Parameters:
id - the database ID of the pseudonym type
Returns:
the specified pseudonym type
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType selectPseudonymType(java.lang.String name)
                                             throws java.lang.Exception
Description copied from interface: DBI
Select a pseudonym type by its name.

Specified by:
selectPseudonymType in interface DBI
Parameters:
name - the name of the pseudonym type
Returns:
the specified pseudonym type
Throws:
java.lang.Exception - if a database access error occurs.

selectPublicKey

public psman.data.PublicKey selectPublicKey(byte[] id)
                                     throws java.lang.Exception
Description copied from interface: DBI
Get a public key.

Specified by:
selectPublicKey in interface DBI
Parameters:
id - the database ID of a public key.
Returns:
The key object containing the public key.
Throws:
java.lang.Exception - if a database access error occurs.

selectSecretKey

public psman.data.SecretKey selectSecretKey(byte[] id)
                                     throws java.lang.Exception
Description copied from interface: DBI
Get a secret key.

Specified by:
selectSecretKey in interface DBI
Parameters:
id - the database ID of a secret key.
Returns:
The key object containing the secret key.
Throws:
java.lang.Exception - if a database access error occurs.

selectTPartner

public psman.data.TPartner selectTPartner(int id)
                                   throws java.lang.Exception
Description copied from interface: DBI
Select a transaction partner by its ID.

Specified by:
selectTPartner in interface DBI
Parameters:
id - the database ID of the transaction partner
Returns:
the specified transaction partner
Throws:
java.lang.Exception - if a database access error occurs.

selectTPartner

public psman.data.TPartner selectTPartner(psman.data.PublicKey key)
                                   throws java.lang.Exception
Description copied from interface: DBI
Select a transaction partner by its public key.

Specified by:
selectTPartner in interface DBI
Parameters:
key - the public key of the transaction partner
Returns:
the specified transaction partner
Throws:
java.lang.Exception - if a database access error occurs.

selectTPartner

public psman.data.TPartner selectTPartner(java.lang.String name)
                                   throws java.lang.Exception
Description copied from interface: DBI
Select a transaction partner by its name.

Specified by:
selectTPartner in interface DBI
Parameters:
name - the name of the transaction partner
Returns:
the specified transaction partner
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction(psman.data.Role data1,
                                                  psman.data.TPartner data2)
                                           throws java.lang.Exception
Description copied from interface: DBI
Select a transaction by used role and transaction partner.

Specified by:
selectTransaction in interface DBI
Parameters:
data1 - the role
data2 - the transaction partner
Returns:
the specified transactions
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction()
                                           throws java.lang.Exception
Description copied from interface: DBI
Get all transaction records.

Specified by:
selectTransaction in interface DBI
Returns:
The arrays of all transactions in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction(psman.data.DataField df)
                                           throws java.lang.Exception
Description copied from interface: DBI
Select all transaction, in which a given data field was received or transmitted.

Specified by:
selectTransaction in interface DBI
Parameters:
df - the data field
Returns:
the specified transactions
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction(psman.data.Pseudonym nym)
                                           throws java.lang.Exception
Description copied from interface: DBI
Select transactions by used pseudonym.

Specified by:
selectTransaction in interface DBI
Parameters:
nym - the pseudonym
Returns:
the specified transactions
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction(psman.data.TPartner partner)
                                           throws java.lang.Exception
Description copied from interface: DBI
Select transactions by transaction partner.

Specified by:
selectTransaction in interface DBI
Parameters:
partner - the transaction partner
Returns:
the specified transactions
Throws:
java.lang.Exception - if a database access error occurs.

selectTransaction

public psman.data.Transaction[] selectTransaction(psman.data.Role role)
                                           throws java.lang.Exception
Description copied from interface: DBI
Select a transaction by used role.

Specified by:
selectTransaction in interface DBI
Parameters:
role - the role
Returns:
the specified transactions
Throws:
java.lang.Exception - if a database access error occurs.

selectCategory

public psman.data.Category[] selectCategory()
                                     throws java.lang.Exception
Description copied from interface: DBI
Get all category records.

Specified by:
selectCategory in interface DBI
Returns:
The arrays of all categories in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectPurpose

public psman.data.Purpose[] selectPurpose()
                                   throws java.lang.Exception
Description copied from interface: DBI
Get all purpose records.

Specified by:
selectPurpose in interface DBI
Returns:
The arrays of all purposes in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectRecipient

public psman.data.Recipient[] selectRecipient()
                                       throws java.lang.Exception
Description copied from interface: DBI
Get all recipient records.

Specified by:
selectRecipient in interface DBI
Returns:
The arrays of all recipients in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectCategory

public psman.data.Category[] selectCategory(psman.data.DataField field)
                                     throws java.lang.Exception
Description copied from interface: DBI
Select all category records belonging to a certain data field.

Specified by:
selectCategory in interface DBI
Returns:
The arrays of the categories.
Throws:
java.lang.Exception - if a database access error occurs.

selectChain

public psman.data.Chain[] selectChain()
                               throws java.lang.Exception
Description copied from interface: DBI
Get all chain records.

Specified by:
selectChain in interface DBI
Returns:
The arrays of all chains in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectRole

public psman.data.Role[] selectRole()
                             throws java.lang.Exception
Description copied from interface: DBI
Get all roles.

Specified by:
selectRole in interface DBI
Returns:
Alle roles in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectRule

public psman.data.Rule[] selectRule()
                             throws java.lang.Exception
Description copied from interface: DBI
Get all rules.

Specified by:
selectRule in interface DBI
Returns:
Alle rules in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectType

public psman.data.Type[] selectType()
                             throws java.lang.Exception
Description copied from interface: DBI
Get all type records.

Specified by:
selectType in interface DBI
Returns:
The arrays of all types in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectType

public psman.data.Type[] selectType(psman.data.TPartner partner)
                             throws java.lang.Exception
Description copied from interface: DBI
Select all types bound to a certain transaction partner.

Specified by:
selectType in interface DBI
Parameters:
partner - the transaction partner
Returns:
the records of all types bound to the transaction partner
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate[] selectCertificate()
                                           throws java.lang.Exception
Description copied from interface: DBI
Get all certificate records.

Specified by:
selectCertificate in interface DBI
Returns:
The arrays of all certificates in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate[] selectCertificate(psman.data.DataField field)
                                           throws java.lang.Exception
Description copied from interface: DBI
Select all certificate records belonging to a certain data field.

Specified by:
selectCertificate in interface DBI
Returns:
The arrays of the certificates.
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate[] selectCertificate(psman.data.Property prop)
                                           throws java.lang.Exception
Description copied from interface: DBI
Select all certificate records belonging to a certain property.

Specified by:
selectCertificate in interface DBI
Returns:
The arrays of the certificates.
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate[] selectCertificate(psman.data.PublicKey key,
                                                  boolean isTestKey)
                                           throws java.lang.Exception
Description copied from interface: DBI
Select all certificate records belonging to a certain public key.

Specified by:
selectCertificate in interface DBI
Parameters:
key - the public key the certificates belong to
isTestKey - if true, search for certificates which can be checked by this key, if not, search for certificates, which sign this key
Returns:
The arrays of the certificates.
Throws:
java.lang.Exception - if a database access error occurs.

selectConfiguration

public psman.data.Configuration[] selectConfiguration()
                                               throws java.lang.Exception
Description copied from interface: DBI
Get all Configuration records.

Specified by:
selectConfiguration in interface DBI
Returns:
The arrays of all configurations in the database
Throws:
java.lang.Exception - if a database access error occurs.

selectAppelRuleSet

public psman.data.AppelRuleSet[] selectAppelRuleSet()
                                             throws java.lang.Exception
Description copied from interface: DBI
Get all sets of appel rules.

Specified by:
selectAppelRuleSet in interface DBI
Returns:
The arrays of all sets in the database
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField()
                                       throws java.lang.Exception
Description copied from interface: DBI
Get all data field records.

Specified by:
selectDataField in interface DBI
Returns:
The arrays of all data fields in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField(psman.data.Certificate cert)
                                       throws java.lang.Exception
Description copied from interface: DBI
Select data fields by their certificate.

Specified by:
selectDataField in interface DBI
Parameters:
cert - the certificate
Returns:
the belonging data fields
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField(java.lang.String name)
                                       throws java.lang.Exception
Description copied from interface: DBI
Select a data field by its name.

Specified by:
selectDataField in interface DBI
Parameters:
name - the name of the data field
Returns:
the specified data field
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField(java.lang.String name,
                                              psman.data.TPartner owner)
                                       throws java.lang.Exception
Description copied from interface: DBI
Select a data field by its name and owner.

Specified by:
selectDataField in interface DBI
Parameters:
name - the name of the data field
owner - the owner of the data field
Returns:
the specified data field
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField(psman.data.TPartner owner)
                                       throws java.lang.Exception
Description copied from interface: DBI
Select a data field by its owner.

Specified by:
selectDataField in interface DBI
Parameters:
owner - the owner of the data field
Returns:
the specified data field
Throws:
java.lang.Exception - if a database access error occurs.

selectDataField

public psman.data.DataField[] selectDataField(psman.data.Transaction trans)
                                       throws java.lang.Exception
Description copied from interface: DBI
Select all data fields belonging to a certain transaction.

Specified by:
selectDataField in interface DBI
Parameters:
trans - the transaction
Returns:
the names of all data fields bound to that transaction
Throws:
java.lang.Exception - if a database access error occurs.

selectRecipient

public psman.data.Recipient[] selectRecipient(psman.data.Transaction data1,
                                              psman.data.DataField data2)
                                       throws java.lang.Exception
Description copied from interface: DBI
Select all recipients belonging to a certain data disclosure.

Specified by:
selectRecipient in interface DBI
Parameters:
data1 - the transaction
data2 - the data field
Returns:
the names of all recipients bound to that disclosure
Throws:
java.lang.Exception - if a database access error occurs.

selectPurpose

public psman.data.Purpose[] selectPurpose(psman.data.Transaction data1,
                                          psman.data.DataField data2)
                                   throws java.lang.Exception
Description copied from interface: DBI
Select all purposes belonging to a certain data disclosure.

Specified by:
selectPurpose in interface DBI
Parameters:
data1 - the transaction
data2 - the data field
Returns:
the names of all purposes bound to that disclosure
Throws:
java.lang.Exception - if a database access error occurs.

selectPerson

public psman.data.Person[] selectPerson()
                                 throws java.lang.Exception
Description copied from interface: DBI
Get all person records.

Specified by:
selectPerson in interface DBI
Returns:
The arrays of all persons in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectProperty

public psman.data.Property[] selectProperty()
                                     throws java.lang.Exception
Description copied from interface: DBI
Select all properties in the database.

Specified by:
selectProperty in interface DBI
Returns:
the records of all properties
Throws:
java.lang.Exception - if a database access error occurs.

selectProperty

public psman.data.Property[] selectProperty(psman.data.Pseudonym nym)
                                     throws java.lang.Exception
Description copied from interface: DBI
Select all properties bound to a certain pseudonym.

Specified by:
selectProperty in interface DBI
Parameters:
nym - the pseudonym
Returns:
the records of all properties bound to the pseudonym
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym()
                                       throws java.lang.Exception
Description copied from interface: DBI
Select all pseudonym records in the database.

Specified by:
selectPseudonym in interface DBI
Returns:
the array of all existing pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym(psman.data.Property prop)
                                       throws java.lang.Exception
Description copied from interface: DBI
Select pseudonyms by a property.

Specified by:
selectPseudonym in interface DBI
Parameters:
prop - the property, all pseudonyms share
Returns:
the specified pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym(psman.data.PseudonymType type)
                                       throws java.lang.Exception
Description copied from interface: DBI
Select pseudonym by their type.

Specified by:
selectPseudonym in interface DBI
Parameters:
type - the pseudonym type, all pseudonyms share
Returns:
the specified pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym(psman.data.Role role)
                                       throws java.lang.Exception
Description copied from interface: DBI
Select pseudonyms by role.

Specified by:
selectPseudonym in interface DBI
Parameters:
role - the role, all pseudonyms share
Returns:
the specified pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym(psman.data.Role data1,
                                              psman.data.TPartner data2)
                                       throws java.lang.Exception
Description copied from interface: DBI
Select pseudonyms by role and transaction partner.

Specified by:
selectPseudonym in interface DBI
Parameters:
data1 - the role, all pseudonyms share
data2 - the transaction partner, all pseudonyms share
Returns:
the specified pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonym

public psman.data.Pseudonym[] selectPseudonym(psman.data.TPartner partner)
                                       throws java.lang.Exception
Description copied from interface: DBI
Select pseudonyms by a transaction partner.

Specified by:
selectPseudonym in interface DBI
Parameters:
partner - the transaction partner, all pseudonyms share
Returns:
the specified pseudonyms
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType[] selectPseudonymType()
                                               throws java.lang.Exception
Description copied from interface: DBI
Select all pseudonym types in the database.

Specified by:
selectPseudonymType in interface DBI
Returns:
the records of all pseudonym types
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType[] selectPseudonymType(psman.data.Pseudonym nym)
                                               throws java.lang.Exception
Description copied from interface: DBI
Select all pseudonym types for the given Pseudonym.

Specified by:
selectPseudonymType in interface DBI
Returns:
the records of all pseudonym types associated with that Pseudonym
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType[] selectPseudonymType(psman.data.Role role)
                                               throws java.lang.Exception
Description copied from interface: DBI
Select pseudonym types, which where used under a given role.

Specified by:
selectPseudonymType in interface DBI
Parameters:
role - the role, for which pseudonym types are to be selected.
Returns:
an array containing all pseudonym types used under the given role.
Throws:
java.lang.Exception - if a database access error occurs.

selectPseudonymType

public psman.data.PseudonymType[] selectPseudonymType(psman.data.TPartner partner)
                                               throws java.lang.Exception
Description copied from interface: DBI
Select pseudonym types, which where used in communication with a given partner.

Specified by:
selectPseudonymType in interface DBI
Parameters:
partner - the partner
Returns:
an array containing all pseudonym types used in communication with the given partner.
Throws:
java.lang.Exception - if a database error occurs.

selectPublicKey

public psman.data.PublicKey[] selectPublicKey()
                                       throws java.lang.Exception
Description copied from interface: DBI
Get all public keys.

Specified by:
selectPublicKey in interface DBI
Returns:
The arrays of all public keys in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectPublicKey

public psman.data.PublicKey[] selectPublicKey(psman.data.Certificate cert,
                                              boolean areTestKeys)
                                       throws java.lang.Exception
Description copied from interface: DBI
Get public keys belonging to a certain certificate.

Specified by:
selectPublicKey in interface DBI
Parameters:
cert - the certificate of the public keys.
areTestKeys -
Returns:
The key object containing the public key.
Throws:
java.lang.Exception - if a database access error occurs.

selectSecretKey

public psman.data.SecretKey[] selectSecretKey()
                                       throws java.lang.Exception
Description copied from interface: DBI
Get all secret keys.

Specified by:
selectSecretKey in interface DBI
Returns:
The arrays of all secret keys in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectTPartner

public psman.data.TPartner[] selectTPartner()
                                     throws java.lang.Exception
Description copied from interface: DBI
Get all transaction partner records.

Specified by:
selectTPartner in interface DBI
Returns:
The arrays of all transaction partners in the database.
Throws:
java.lang.Exception - if a database access error occurs.

selectTPartner

public psman.data.TPartner[] selectTPartner(psman.data.Type type)
                                     throws java.lang.Exception
Description copied from interface: DBI
Select transaction partners by their type.

Specified by:
selectTPartner in interface DBI
Parameters:
type - the type of the transaction partners
Returns:
The array of all transaction partners with the given type
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Purpose data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a purpose.

Specified by:
update in interface DBI
Parameters:
data - the new purpose with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Recipient data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a recipient.

Specified by:
update in interface DBI
Parameters:
data - the new recipient with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Category data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a category.

Specified by:
update in interface DBI
Parameters:
data - the new category with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Chain data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a chain.

Specified by:
update in interface DBI
Parameters:
data - the new chain with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Role data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a role.

Specified by:
update in interface DBI
Parameters:
data - the new role with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Transaction data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a transaction entry.

Specified by:
update in interface DBI
Parameters:
data - the transaction to be updated.
Returns:
The row count for the INSERT statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Type data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a type.

Specified by:
update in interface DBI
Parameters:
data - the new type having an existing ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Configuration data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a configuration.

Specified by:
update in interface DBI
Parameters:
data - the new configuration with the same key.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.AppelRuleSet data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a set of appel rules.

Specified by:
update in interface DBI
Parameters:
data - the new set with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.DataField data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a data field.

Specified by:
update in interface DBI
Parameters:
data - the new data field with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Person data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a person.

Specified by:
update in interface DBI
Parameters:
data - the new person having an existing ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Property data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a property.

Specified by:
update in interface DBI
Parameters:
data - the new property with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Pseudonym data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a pseudonym.

Specified by:
update in interface DBI
Parameters:
data - the new pseudonym with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.PseudonymType data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a pseudonym type.

Specified by:
update in interface DBI
Parameters:
data - the new pseudonym type with an existing database ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.TPartner data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a transaction partner.

Specified by:
update in interface DBI
Parameters:
data - the new transaction partner having an existing ID.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.DataField data,
               psman.data.Certificate[] bindings)
        throws java.lang.Exception
Description copied from interface: DBI
Update a data field's certificates.

Specified by:
set in interface DBI
Parameters:
data - the allready registered datafield.
bindings - the related certificates.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.DataField data,
               psman.data.Category[] bindings)
        throws java.lang.Exception
Description copied from interface: DBI
Update a data field's categories.

Specified by:
set in interface DBI
Parameters:
data - the allready registered datafield.
bindings - the related categories.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.Property data,
               psman.data.Certificate[] bindings)
        throws java.lang.Exception
Description copied from interface: DBI
set a property's certificates.

Specified by:
set in interface DBI
Parameters:
data - the allready registered property.
bindings - the related certificates.
Returns:
The row count of the SET statement 2 in case of updating, 1 in case of deleteing or inserting .
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.Pseudonym data,
               psman.data.Property[] bindings)
        throws java.lang.Exception
Description copied from interface: DBI
Update pseudonyms properties.

Specified by:
set in interface DBI
Parameters:
data - the pseudonym, properties are updated to
bindings - the properties which are actually valid
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.Pseudonym data,
               psman.data.PseudonymType[] bindings)
        throws java.lang.Exception
Description copied from interface: DBI
Update pseudonyms pseudonym types.

Specified by:
set in interface DBI
Parameters:
data - the pseudonym, pseudonym types are updated to
bindings - the pseudonym types which are actually valid
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.PublicKey data,
               psman.data.Certificate[] bindings)
        throws java.lang.Exception
Description copied from interface: DBI
Update a public key's certificates.

Specified by:
set in interface DBI
Parameters:
data - the allready registered public key.
bindings - the related certificates.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.TPartner data,
               psman.data.Type[] bindings)
        throws java.lang.Exception
Description copied from interface: DBI
Update transaction partner types.

Specified by:
set in interface DBI
Parameters:
data - the transaction partner, types are updated to
bindings - the types which are actually valid
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

set

public int set(psman.data.Transaction data,
               psman.data.DataField[] bindings)
        throws java.lang.Exception
Description copied from interface: DBI
Update transaction datafields.

Specified by:
set in interface DBI
Parameters:
data - the transaction partner
bindings - all the datafields
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Transaction data1,
                  psman.data.DataField data2,
                  psman.data.Purpose[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Update transaction datafield purpose.

Specified by:
update in interface DBI
Parameters:
data1 - the transaction partner
data2 - the datafield
bindings - all puposes
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Transaction data1,
                  psman.data.DataField data2,
                  psman.data.Recipient[] bindings)
           throws java.lang.Exception
Description copied from interface: DBI
Update transaction datafield recipients.

Specified by:
update in interface DBI
Parameters:
data1 - the transaction partner qparam data2 the datafield
bindings - all the recipients
Returns:
The row count for the INSERT statement, 0 or greater.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Role data1,
                  psman.data.TPartner data2,
                  psman.data.PseudonymType binding)
           throws java.lang.Exception
Description copied from interface: DBI
Updates a binding to a pseudonym type for the given context.

Specified by:
update in interface DBI
Parameters:
data1 - role of the user.
data2 - current transaction partner, maybe null.
binding - pseudonymtype to use.
Returns:
1 on success, 0 if database has not been changed.
Throws:
java.lang.Exception - if a database access error occurs.

update

public int update(psman.data.Chain chain,
                  int rank,
                  psman.data.Rule data)
           throws java.lang.Exception
Description copied from interface: DBI
Update a rule.

Specified by:
update in interface DBI
Parameters:
chain - the chain of the old rule which is to be replaced.
rank - the rank of the old role which is to be replaced.
data - the new role which is to be inserted.
Returns:
The row count of the UPDATE statement, either 0 or 1.
Throws:
java.lang.Exception - if a database access error occurs.

selectCertificate

public psman.data.Certificate[] selectCertificate(psman.data.PublicKey signedKey,
                                                  psman.data.PublicKey[] signKeys)
                                           throws java.lang.Exception
Description copied from interface: DBI
Selects certificates which certify the signedKey with one of the signKeys.

Specified by:
selectCertificate in interface DBI
Parameters:
signedKey - the key in question.
signKeys - valid keys for signature.
Returns:
array of certificate signing signedKey and signed by key from signKeys
Throws:
java.lang.Exception - if a database access error occurs.


Copyright © 2003 DRIM Team. All Rights Reserved.