Class NetworkArtifact

java.lang.Object
rice.p2p.past.ContentHashPastContent
i5.las2peer.persistency.AbstractArtifact
i5.las2peer.persistency.NetworkArtifact
All Implemented Interfaces:
java.io.Serializable, rice.p2p.past.PastContent
Direct Known Subclasses:
EnvelopeArtifact, MetadataArtifact

public abstract class NetworkArtifact
extends AbstractArtifact
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:
Serialized Form
  • Field Summary

    Fields inherited from class i5.las2peer.persistency.AbstractArtifact

    content, MAX_SIZE

    Fields inherited from class rice.p2p.past.ContentHashPastContent

    myId
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected NetworkArtifact​(rice.p2p.commonapi.Id id, int partIndex, byte[] content, AgentImpl author)  
  • Method Summary

    Modifier and Type Method Description
    java.security.PublicKey getAuthorPublicKey()  
    int getPartIndex()  
    boolean hasSameAuthor​(NetworkArtifact other)  
    void verify()  

    Methods inherited from class i5.las2peer.persistency.AbstractArtifact

    checkInsert, getContent, toString

    Methods inherited from class rice.p2p.past.ContentHashPastContent

    getHandle, getId, isMutable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait