Package pygar.documents
Class EncryptedFieldTable
java.lang.Object
pygar.documents.EncryptedFieldTable
@NotThreadSafe public class EncryptedFieldTable extends java.lang.Object
An EncryptedFieldTable contains a table that lists those fields of an XML document that are
subject to partial encryption. Fields are identified by a partially qualified name.
The qualified names are assumed to be complete on the right hand side but possibly incomplete on the left. Thus the incomplete name d.e.f will match a.b.d.e.f or r.d.e.f but d.e.f.g is not matched because the d.e.f portion of that name is not in the rightmost position. In other words, the partial names identify leaves of the XML document tree, not branches.
Each table row contains one partially qualified name, and a type indicator chosen from the EFTYPE enumeration. This type specifies how that field should be encrypted during the partial encryption of the statement. Partial encryption occurs only in the client, however, the type information is also used by the broker to guide the matchmaking process.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EncryptedFieldTable.EFTYPE
The EFTYPE enumeration recites representation types that may be found while reading an XML statement.static class
EncryptedFieldTable.RealRange
A RealRange is just a pair of doubles indicating the lower and upper values of a range of real values.static class
EncryptedFieldTable.Row
The Row is the item stored in the table. -
Field Summary
Fields Modifier and Type Field Description EncryptedFieldTable.Row
defaultRow
EncryptedFieldTable.EFTYPE
EFTYPE_DEFAULT
-
Constructor Summary
Constructors Constructor Description EncryptedFieldTable(EncryptedFieldTable.EFTYPE f_default)
-
Method Summary
Modifier and Type Method Description void
addRow(EncryptedFieldTable.Row row)
Extend the table with a new row.EncryptedFieldTable.Row
getRow(java.lang.String name)
java.lang.String
lookupName(java.lang.String name)
-
Field Details
-
Constructor Details
-
Method Details
-
addRow
Extend the table with a new row. The name of the new row must not match the name of an existing row; otherwise, an exception is thrown.- Parameters:
row
-- Throws:
ConfigurationError
-
lookupName
public java.lang.String lookupName(java.lang.String name) -
getRow
-