Package i5.las2peer.persistency
Class NetworkArtifact
java.lang.Object
rice.p2p.past.ContentHashPastContent
i5.las2peer.persistency.AbstractArtifact
i5.las2peer.persistency.NetworkArtifact
- All Implemented Interfaces:
Serializable
,rice.p2p.past.PastContent
- Direct Known Subclasses:
EnvelopeArtifact
,MetadataArtifact
A network artifact is a bunch of arbitrary data in the shared storage. It is signed to help detect manipulations.
Note that this signature is self signed, one has to check if the used key is in a list of trusted keys.
- See Also:
-
Field Summary
Fields inherited from class i5.las2peer.persistency.AbstractArtifact
content, MAX_SIZE
Fields inherited from class rice.p2p.past.ContentHashPastContent
myId
-
Constructor Summary
ModifierConstructorDescriptionprotected
NetworkArtifact
(rice.p2p.commonapi.Id id, int partIndex, byte[] content, AgentImpl author) -
Method Summary
Methods inherited from class i5.las2peer.persistency.AbstractArtifact
checkInsert, getContent, toString
Methods inherited from class rice.p2p.past.ContentHashPastContent
getHandle, getId, isMutable
-
Constructor Details
-
NetworkArtifact
protected NetworkArtifact(rice.p2p.commonapi.Id id, int partIndex, byte[] content, AgentImpl author) throws CryptoException, VerificationFailedException, AgentLockedException
-
-
Method Details
-
getPartIndex
public int getPartIndex() -
getAuthorPublicKey
- Throws:
VerificationFailedException
-
verify
- Overrides:
verify
in classAbstractArtifact
- Throws:
VerificationFailedException
-
hasSameAuthor
-