java.lang.Objectorg.pre4j.model.EncryptableModelBase
public abstract class EncryptableModelBase
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.hp.hpl.jena.shared.PrefixMapping |
|---|
com.hp.hpl.jena.shared.PrefixMapping.Factory, com.hp.hpl.jena.shared.PrefixMapping.IllegalPrefixException, com.hp.hpl.jena.shared.PrefixMapping.JenaLockedException |
| Field Summary | |
|---|---|
protected EncryptableGraph |
m_encGraph
|
| Fields inherited from interface com.hp.hpl.jena.shared.PrefixMapping |
|---|
Extended, Standard |
| Fields inherited from interface com.hp.hpl.jena.rdf.model.ModelLock |
|---|
READ, WRITE |
| Constructor Summary | |
|---|---|
EncryptableModelBase()
|
|
| Method Summary | |
|---|---|
void |
commitEncryption(java.util.Collection<KeyInfo> keys)
|
void |
commitEncryption(KeyInfo key)
|
void |
decrypt(java.util.Collection<KeyInfo> keys)
|
void |
decrypt(KeyInfo key)
|
void |
encryptLabel(com.hp.hpl.jena.rdf.model.RDFNode n)
Marks an URI or literal value of the given RDFNode for enryption. |
void |
encryptLabel(com.hp.hpl.jena.rdf.model.Statement s)
|
void |
encryptStatement(com.hp.hpl.jena.rdf.model.Statement s)
|
void |
encryptStatements(java.util.Collection<com.hp.hpl.jena.rdf.model.Statement> s)
|
java.lang.String |
getTrace()
Gets the trace of the encryption log. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.hp.hpl.jena.rdf.model.Model |
|---|
abort, add, add, add, add, add, add, begin, close, commit, contains, contains, contains, containsAll, containsAll, containsAny, containsAny, containsResource, createList, createList, createList, createLiteral, createLiteral, createLiteral, createProperty, createReifiedStatement, createReifiedStatement, createResource, createResource, createResource, createStatement, createTypedLiteral, createTypedLiteral, createTypedLiteral, difference, equals, executeInTransaction, getAnyReifiedStatement, getModelLock, getProperty, getProperty, getReificationStyle, getRequiredProperty, getResource, independent, intersection, isEmpty, isIsomorphicWith, isReified, listNameSpaces, listObjects, listObjectsOfProperty, listObjectsOfProperty, listReifiedStatements, listReifiedStatements, listStatements, listStatements, listStatements, listSubjects, listSubjectsWithProperty, listSubjectsWithProperty, notifyEvent, query, read, read, read, read, read, read, read, register, remove, remove, remove, removeAll, removeAll, removeAllReifications, removeReification, size, supportsSetOperations, supportsTransactions, union, unregister, write, write, write, write, write, write |
| Methods inherited from interface com.hp.hpl.jena.rdf.model.ModelCon |
|---|
add, add, add, add, add, add, add, add, add, add, add, contains, contains, contains, contains, contains, contains, contains, contains, createAlt, createAlt, createBag, createBag, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createProperty, createResource, createResource, createResource, createResource, createSeq, createSeq, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createStatement, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, createTypedLiteral, getAlt, getAlt, getBag, getBag, getProperty, getRDFNode, getResource, getSeq, getSeq, listStatements, listStatements, listStatements, listStatements, listStatements, listStatements, listStatements, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, listSubjectsWithProperty, remove, remove, remove |
| Methods inherited from interface com.hp.hpl.jena.rdf.model.ModelGraphInterface |
|---|
asRDFNode, asStatement, getGraph, queryHandler |
| Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFReaderF |
|---|
getReader, getReader, setReaderClassName |
| Methods inherited from interface com.hp.hpl.jena.rdf.model.RDFWriterF |
|---|
getWriter, getWriter, setWriterClassName |
| Methods inherited from interface com.hp.hpl.jena.shared.PrefixMapping |
|---|
expandPrefix, getNsPrefixMap, getNsPrefixURI, getNsURIPrefix, lock, qnameFor, removeNsPrefix, samePrefixMappingAs, setNsPrefix, setNsPrefixes, setNsPrefixes, shortForm, usePrefix, withDefaultMappings |
| Methods inherited from interface com.hp.hpl.jena.shared.Lock |
|---|
enterCriticalSection, leaveCriticalSection |
| Field Detail |
|---|
protected EncryptableGraph m_encGraph
| Constructor Detail |
|---|
public EncryptableModelBase()
| Method Detail |
|---|
public void commitEncryption(java.util.Collection<KeyInfo> keys)
throws RDFEncryptionException
commitEncryption in interface EncryptableRDFEncryptionExceptionorg.pre4j.model.EncryptableModel#commitEncryption(java.util.List)
public void commitEncryption(KeyInfo key)
throws RDFEncryptionException
commitEncryption in interface EncryptableRDFEncryptionExceptionEncryptable.commitEncryption(org.pre4j.crypto.KeyInfo)
public void decrypt(java.util.Collection<KeyInfo> keys)
throws RDFEncryptionException
decrypt in interface EncryptableRDFEncryptionExceptionorg.pre4j.model.EncryptableModel#decrypt(java.util.List)
public void decrypt(KeyInfo key)
throws RDFEncryptionException
decrypt in interface EncryptableRDFEncryptionExceptionEncryptable.decrypt(org.pre4j.crypto.KeyInfo)
public void encryptLabel(com.hp.hpl.jena.rdf.model.RDFNode n)
throws RDFEncryptionException
EncryptableModelEncryptableModel.encryptLabel(Statement) method.
The node value MUST be either a URI or a literal. B-nodes cannot be label
encrypted since they do not have a label. If a B-node is given as argument of
this method will cause an RDFEncryptionException.
encryptLabel in interface EncryptableModeln - the URI or literal node value to be encrypted
RDFEncryptionException - if n is a B-node.EncryptableModel.encryptLabel(com.hp.hpl.jena.rdf.model.RDFNode)
public void encryptLabel(com.hp.hpl.jena.rdf.model.Statement s)
throws RDFEncryptionException
encryptLabel in interface EncryptableModelRDFEncryptionException
public void encryptStatement(com.hp.hpl.jena.rdf.model.Statement s)
throws RDFEncryptionException
encryptStatement in interface EncryptableModelRDFEncryptionExceptionEncryptableModel.encryptStatement(com.hp.hpl.jena.rdf.model.Statement)
public void encryptStatements(java.util.Collection<com.hp.hpl.jena.rdf.model.Statement> s)
throws RDFEncryptionException
encryptStatements in interface EncryptableModelRDFEncryptionExceptionEncryptableModel.encryptStatements(java.util.Collection)public java.lang.String getTrace()
Encryptable
getTrace in interface Encryptable