public class ObjectGlob extends AbstractGlob<ObjectGroup>
Constructor and Description |
---|
ObjectGlob(java.io.DataInput in)
Deserializer.
|
ObjectGlob(Store store,
ObjectGroup group,
java.security.PrivateKey key)
Used by the store to encrypt and sign an object group.
|
Modifier and Type | Method and Description |
---|---|
protected ObjectGroup |
deserializePayload(java.io.DataInput in)
Deserializes a payload object from the given input.
|
boolean |
updateCache(Cache dissemCache,
RemoteStore store,
long onum)
Updates the worker and dissemination caches with this glob.
|
protected void |
verifyNoSignatureRequired(ObjectGroup group)
Verifies that the given group does not require a signature.
|
decrypt, getTimestamp, isOlderThan, verifySignature, write
public ObjectGlob(Store store, ObjectGroup group, java.security.PrivateKey key)
store
- The store at which the group resides.group
- The group to encapsulate.key
- The store's private key. Used to sign the glob.public ObjectGlob(java.io.DataInput in) throws java.io.IOException
java.io.IOException
protected void verifyNoSignatureRequired(ObjectGroup group) throws java.security.SignatureException
verifyNoSignatureRequired
in class AbstractGlob<ObjectGroup>
java.security.SignatureException
- if the payload requires a signature.protected ObjectGroup deserializePayload(java.io.DataInput in) throws java.io.IOException
AbstractGlob
deserializePayload
in class AbstractGlob<ObjectGroup>
java.io.IOException
public boolean updateCache(Cache dissemCache, RemoteStore store, long onum)
AbstractGlob
updateCache
in class AbstractGlob<ObjectGroup>