br.ufsc.das.confidentiality
Class ServerConfidentialityLayer

java.lang.Object
  extended by br.ufsc.das.confidentiality.ServerConfidentialityLayer
All Implemented Interfaces:
DepSpace, DepSpaceServer

public class ServerConfidentialityLayer
extends java.lang.Object
implements DepSpaceServer


Constructor Summary
ServerConfidentialityLayer(DepSpaceServer upperLayer, ConfidentialityScheme scheme, TSConfiguration conf)
          Creates a new instance of ServerConfidentialityLayer
 
Method Summary
 DepTuple cas(DepTuple template, DepTuple tuple, Context ctx)
          If the returned value is null, then the tuple was inserted.
 void clean(DepTuple proof, Context ctx)
           
 java.util.List<DepTuple> getTuples()
           
 DepTuple in(DepTuple template, Context ctx)
          Must never be called!!!
 DepTuple inp(DepTuple template, Context ctx)
           
 void out(DepTuple tuple, Context ctx)
           
 DepTuple rd(DepTuple template, Context ctx)
          Must never be called!!!
 DepTuple rdp(DepTuple template, Context ctx)
           
 java.lang.Object signedRD(DepTuple template, Context ctx)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerConfidentialityLayer

public ServerConfidentialityLayer(DepSpaceServer upperLayer,
                                  ConfidentialityScheme scheme,
                                  TSConfiguration conf)
Creates a new instance of ServerConfidentialityLayer

Method Detail

signedRD

public java.lang.Object signedRD(DepTuple template,
                                 Context ctx)
                          throws DepSpaceException
Specified by:
signedRD in interface DepSpaceServer
Throws:
DepSpaceException

clean

public void clean(DepTuple proof,
                  Context ctx)
           throws DepSpaceException
Specified by:
clean in interface DepSpaceServer
Throws:
DepSpaceException

out

public void out(DepTuple tuple,
                Context ctx)
         throws DepSpaceException
Specified by:
out in interface DepSpace
Throws:
DepSpaceException

rd

public DepTuple rd(DepTuple template,
                   Context ctx)
            throws DepSpaceException
Must never be called!!!

Specified by:
rd in interface DepSpace
Throws:
DepSpaceException

in

public DepTuple in(DepTuple template,
                   Context ctx)
            throws DepSpaceException
Must never be called!!!

Specified by:
in in interface DepSpace
Throws:
DepSpaceException

rdp

public DepTuple rdp(DepTuple template,
                    Context ctx)
             throws DepSpaceException
Specified by:
rdp in interface DepSpace
Throws:
DepSpaceException

inp

public DepTuple inp(DepTuple template,
                    Context ctx)
             throws DepSpaceException
Specified by:
inp in interface DepSpace
Throws:
DepSpaceException

cas

public DepTuple cas(DepTuple template,
                    DepTuple tuple,
                    Context ctx)
             throws DepSpaceException
Description copied from interface: DepSpace
If the returned value is null, then the tuple was inserted.

Specified by:
cas in interface DepSpace
Throws:
DepSpaceException

getTuples

public java.util.List<DepTuple> getTuples()
                                   throws DepSpaceException
Specified by:
getTuples in interface DepSpaceServer
Throws:
DepSpaceException