org.pre4j.graph
Class EncryptableGraphImpl

java.lang.Object
  extended by org.pre4j.graph.EncryptableGraphImpl
All Implemented Interfaces:
com.hp.hpl.jena.graph.Graph, com.hp.hpl.jena.graph.GraphAdd, Encryptable, EncryptableGraph

public class EncryptableGraphImpl
extends java.lang.Object
implements EncryptableGraph

This class implements the EncryptableGraph interface.

Author:
Mark Giereth

Field Summary
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
emptyGraph
 
Constructor Summary
EncryptableGraphImpl(com.hp.hpl.jena.graph.Graph graph)
          Creates a default GraphEncryptor instance with AES (256 bit keys) for encryption and SHA1 for digest.
 
Method Summary
 void add(com.hp.hpl.jena.graph.Triple arg0)
           
 void close()
           
 void commitEncryption(java.util.Collection<KeyInfo> keys)
           
 void commitEncryption(KeyInfo key)
           
 boolean contains(com.hp.hpl.jena.graph.Node arg0, com.hp.hpl.jena.graph.Node arg1, com.hp.hpl.jena.graph.Node arg2)
           
 boolean contains(com.hp.hpl.jena.graph.Triple arg0)
           
 void decrypt(java.util.Collection<KeyInfo> keys)
           
 void decrypt(KeyInfo key)
           
 void delete(com.hp.hpl.jena.graph.Triple arg0)
           
 boolean dependsOn(com.hp.hpl.jena.graph.Graph arg0)
           
 void encryptLabel(com.hp.hpl.jena.graph.Node n)
          Changes
 void encryptTriple(com.hp.hpl.jena.graph.Triple t)
           
 void encryptTriples(java.util.Collection<com.hp.hpl.jena.graph.Triple> t)
           
 com.hp.hpl.jena.util.iterator.ExtendedIterator find(com.hp.hpl.jena.graph.Node arg0, com.hp.hpl.jena.graph.Node arg1, com.hp.hpl.jena.graph.Node arg2)
           
 com.hp.hpl.jena.util.iterator.ExtendedIterator find(com.hp.hpl.jena.graph.TripleMatch arg0)
           
 com.hp.hpl.jena.graph.BulkUpdateHandler getBulkUpdateHandler()
           
 com.hp.hpl.jena.graph.Capabilities getCapabilities()
           
 com.hp.hpl.jena.graph.GraphEventManager getEventManager()
           
 com.hp.hpl.jena.shared.PrefixMapping getPrefixMapping()
           
 com.hp.hpl.jena.graph.Reifier getReifier()
           
 java.lang.String getTrace()
          Gets the trace of the encryption log.
 com.hp.hpl.jena.graph.TransactionHandler getTransactionHandler()
           
 boolean isEmpty()
           
 boolean isIsomorphicWith(com.hp.hpl.jena.graph.Graph arg0)
           
 com.hp.hpl.jena.graph.query.QueryHandler queryHandler()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptableGraphImpl

public EncryptableGraphImpl(com.hp.hpl.jena.graph.Graph graph)
Creates a default GraphEncryptor instance with AES (256 bit keys) for encryption and SHA1 for digest.

Method Detail

add

public void add(com.hp.hpl.jena.graph.Triple arg0)
         throws com.hp.hpl.jena.shared.AddDeniedException
Specified by:
add in interface com.hp.hpl.jena.graph.GraphAdd
Throws:
com.hp.hpl.jena.shared.AddDeniedException
See Also:
GraphAdd.add(com.hp.hpl.jena.graph.Triple)

close

public void close()
Specified by:
close in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.close()

commitEncryption

public void commitEncryption(java.util.Collection<KeyInfo> keys)
                      throws RDFEncryptionException
Specified by:
commitEncryption in interface Encryptable
Throws:
RDFEncryptionException
See Also:
org.foafscape.rdfenc.graph.EncryptableGraph#commitEncryption(java.util.List)

commitEncryption

public void commitEncryption(KeyInfo key)
                      throws RDFEncryptionException
Specified by:
commitEncryption in interface Encryptable
Throws:
RDFEncryptionException
See Also:
org.foafscape.rdfenc.graph.EncryptableGraph#commitEncryption(org.foafscape.rdfenc.crypto.KeyInfo)

contains

public boolean contains(com.hp.hpl.jena.graph.Node arg0,
                        com.hp.hpl.jena.graph.Node arg1,
                        com.hp.hpl.jena.graph.Node arg2)
Specified by:
contains in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.contains(com.hp.hpl.jena.graph.Node, com.hp.hpl.jena.graph.Node, com.hp.hpl.jena.graph.Node)

contains

public boolean contains(com.hp.hpl.jena.graph.Triple arg0)
Specified by:
contains in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.contains(com.hp.hpl.jena.graph.Triple)

decrypt

public void decrypt(java.util.Collection<KeyInfo> keys)
             throws RDFEncryptionException
Specified by:
decrypt in interface Encryptable
Throws:
RDFEncryptionException
See Also:
org.foafscape.rdfenc.graph.EncryptableGraph#decrypt(java.util.List)

decrypt

public void decrypt(KeyInfo key)
             throws RDFEncryptionException
Specified by:
decrypt in interface Encryptable
Throws:
RDFEncryptionException
See Also:
org.foafscape.rdfenc.graph.EncryptableGraph#decrypt(org.foafscape.rdfenc.crypto.KeyInfo)

delete

public void delete(com.hp.hpl.jena.graph.Triple arg0)
            throws com.hp.hpl.jena.shared.DeleteDeniedException
Specified by:
delete in interface com.hp.hpl.jena.graph.Graph
Throws:
com.hp.hpl.jena.shared.DeleteDeniedException
See Also:
Graph.delete(com.hp.hpl.jena.graph.Triple)

dependsOn

public boolean dependsOn(com.hp.hpl.jena.graph.Graph arg0)
Specified by:
dependsOn in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.dependsOn(com.hp.hpl.jena.graph.Graph)

encryptLabel

public void encryptLabel(com.hp.hpl.jena.graph.Node n)
                  throws RDFEncryptionException
Description copied from interface: EncryptableGraph
Changes

Specified by:
encryptLabel in interface EncryptableGraph
Throws:
RDFEncryptionException
See Also:
org.foafscape.rdfenc.graph.EncryptableGraph#encryptLabel(com.hp.hpl.jena.graph.Node)

encryptTriple

public void encryptTriple(com.hp.hpl.jena.graph.Triple t)
                   throws RDFEncryptionException
Specified by:
encryptTriple in interface EncryptableGraph
Throws:
RDFEncryptionException
See Also:
org.foafscape.rdfenc.graph.EncryptableGraph#encryptTriple(com.hp.hpl.jena.graph.Triple)

encryptTriples

public void encryptTriples(java.util.Collection<com.hp.hpl.jena.graph.Triple> t)
                    throws RDFEncryptionException
Specified by:
encryptTriples in interface EncryptableGraph
Throws:
RDFEncryptionException
See Also:
org.foafscape.rdfenc.graph.EncryptableGraph#encryptTriples(java.util.Collection)

find

public com.hp.hpl.jena.util.iterator.ExtendedIterator find(com.hp.hpl.jena.graph.Node arg0,
                                                           com.hp.hpl.jena.graph.Node arg1,
                                                           com.hp.hpl.jena.graph.Node arg2)
Specified by:
find in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.find(com.hp.hpl.jena.graph.Node, com.hp.hpl.jena.graph.Node, com.hp.hpl.jena.graph.Node)

find

public com.hp.hpl.jena.util.iterator.ExtendedIterator find(com.hp.hpl.jena.graph.TripleMatch arg0)
Specified by:
find in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.find(com.hp.hpl.jena.graph.TripleMatch)

getBulkUpdateHandler

public com.hp.hpl.jena.graph.BulkUpdateHandler getBulkUpdateHandler()
Specified by:
getBulkUpdateHandler in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.getBulkUpdateHandler()

getCapabilities

public com.hp.hpl.jena.graph.Capabilities getCapabilities()
Specified by:
getCapabilities in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.getCapabilities()

getEventManager

public com.hp.hpl.jena.graph.GraphEventManager getEventManager()
Specified by:
getEventManager in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.getEventManager()

getPrefixMapping

public com.hp.hpl.jena.shared.PrefixMapping getPrefixMapping()
Specified by:
getPrefixMapping in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.getPrefixMapping()

getReifier

public com.hp.hpl.jena.graph.Reifier getReifier()
Specified by:
getReifier in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.getReifier()

getTrace

public java.lang.String getTrace()
Description copied from interface: Encryptable
Gets the trace of the encryption log.

Specified by:
getTrace in interface Encryptable

getTransactionHandler

public com.hp.hpl.jena.graph.TransactionHandler getTransactionHandler()
Specified by:
getTransactionHandler in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.getTransactionHandler()

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.isEmpty()

isIsomorphicWith

public boolean isIsomorphicWith(com.hp.hpl.jena.graph.Graph arg0)
Specified by:
isIsomorphicWith in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.isIsomorphicWith(com.hp.hpl.jena.graph.Graph)

queryHandler

public com.hp.hpl.jena.graph.query.QueryHandler queryHandler()
Specified by:
queryHandler in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.queryHandler()

size

public int size()
Specified by:
size in interface com.hp.hpl.jena.graph.Graph
See Also:
Graph.size()