|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.PersistentObject
com.waveset.object.EncryptionKey
A subclass of PersistentObject
that represents a key used to encrypt and decrypt data.
Nested Class Summary |
Nested classes inherited from class com.waveset.object.PersistentObject |
PersistentObject.Comparator, PersistentObject.InitialInstance |
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.object.PersistentObject |
_trace, trace |
Constructor Summary | |
EncryptionKey()
Construct a new (empty) key object. |
|
EncryptionKey(byte[] value,
boolean pbeEncrypt)
Construct a new EncryptionKey with the specified byte array value. |
|
EncryptionKey(org.w3c.dom.Element e)
Deserialize a EncryptionKey object from XML. |
|
EncryptionKey(java.lang.String xml)
|
Method Summary | |
protected void |
addSubclassAttributes(java.lang.StringBuffer b)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
void |
defaultEncryptValue()
Re-encrypt value using default key |
Type |
getType()
Return the Type object associated with this class. |
EncryptedData |
getValue()
|
protected void |
parseSubclassAttributes(org.w3c.dom.Element e)
Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer). |
void |
pbeEncryptValue()
Re-encrypt value using PBE key |
void |
setValue(EncryptedData value)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public EncryptionKey()
public EncryptionKey(byte[] value, boolean pbeEncrypt) throws WavesetException
public EncryptionKey(org.w3c.dom.Element e) throws WavesetException
public EncryptionKey(java.lang.String xml) throws WavesetException
Method Detail |
public Type getType()
getType
in class PersistentObject
public void setValue(EncryptedData value)
public EncryptedData getValue()
public void pbeEncryptValue()
public void defaultEncryptValue()
protected void addSubclassAttributes(java.lang.StringBuffer b)
PersistentObject
NOTE: Any subclass that overrides this method must similarly override parseSubclassAttributes() so that the subclass attributes are restored.
addSubclassAttributes
in class PersistentObject
protected void parseSubclassAttributes(org.w3c.dom.Element e) throws WavesetException
PersistentObject
parseSubclassAttributes
in class PersistentObject
WavesetException
PersistentObject's default implementation is a no-op.
,
PersistentObject.parseXml(Element)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |