de.fuberlin.wiwiss.ng4j.swp
Interface SWPAuthority

All Known Implementing Classes:
SWPAuthorityImpl

public interface SWPAuthority

An SWPAuthority represents information about an authorty like id, label, eMail, keys and certificates

Author:
chris bizer, rowland watkins

Method Summary
 boolean addDescriptionToGraph(NamedGraph graph, ArrayList listOfAuthorityProperties)
           
 void addProperty(Node predicate, Node object)
          Adds an additional property of the authority.
 X509Certificate getCertificate()
           
 String getEmail()
           
 Graph getGraph()
          Returns a graph containing all information about the authorty.
 Node getID()
           
 String getLabel()
           
 ExtendedIterator getProperty(Node predicate)
          Returns an iterator over all property values (nodes) for a given property.
 PublicKey getPublicKey()
           
 void setCertificate(X509Certificate certificate)
          Sets the certificate of the authority.
 void setEmail(String email)
          Sets the eMail address of the authority.
 void setID(Node id)
          Sets the ID of the authority.
 void setLabel(String label)
          Sets the Label / Name of the authority.
 void setPublicKey(PublicKey key)
          Sets the public key of the authority.
 

Method Detail

setID

void setID(Node id)
Sets the ID of the authority. Authorities can by identified using a URIref or a bNode


getID

Node getID()

setLabel

void setLabel(String label)
Sets the Label / Name of the authority. Will be serialized using rdfs:label


getLabel

String getLabel()

setEmail

void setEmail(String email)
Sets the eMail address of the authority. Will be serialized using foaf:mbox


getEmail

String getEmail()

setPublicKey

void setPublicKey(PublicKey key)
Sets the public key of the authority. Will be serialized using swp:hasKey


getPublicKey

PublicKey getPublicKey()

setCertificate

void setCertificate(X509Certificate certificate)
Sets the certificate of the authority.


getCertificate

X509Certificate getCertificate()

addProperty

void addProperty(Node predicate,
                 Node object)
Adds an additional property of the authority.


getProperty

ExtendedIterator getProperty(Node predicate)
Returns an iterator over all property values (nodes) for a given property.


addDescriptionToGraph

boolean addDescriptionToGraph(NamedGraph graph,
                              ArrayList listOfAuthorityProperties)

getGraph

Graph getGraph()
Returns a graph containing all information about the authorty. Excluding its private key :-)