sdsi.control
Class CertCache

java.lang.Object
  |
  +--sdsi.control.CertCache
All Implemented Interfaces:
java.io.Serializable

public class CertCache
extends java.lang.Object
implements java.io.Serializable

Author:
Sameer Ajmani
See Also:
Serialized Form

Nested Class Summary
 class CertCache.ReducingPair
           
 
Constructor Summary
CertCache()
           
CertCache(java.io.InputStream is)
           
 
Method Summary
 void add(SDSIObject object)
           
 void fullClosure()
           
 SDSIObject get(Hash hash)
           
 java.util.Set getAuths(SDSIPrincipal issuer, Tag tag)
           
 java.util.Set getDefs(SDSIPrincipal issuer, java.lang.String name)
           
 java.lang.String getDisplayName(SDSIPrincipal owner, SDSIObject o)
           
 SDSISignature getIssuerSig(Cert cert)
           
 SDSIPublicKey getKey(Hash hash)
           
 SDSIPublicKey getKey(SDSIPrincipal principal)
           
 java.lang.String getNameFor(SDSIPrincipal owner, SDSIPrincipal principal)
           
 java.util.Set getObjects()
           
 java.util.Set getReducingPairs(Cert cert)
           
 java.util.Set getSignatures(SDSIObject object)
           
 void incrementalClosure(Cert cert)
           
 void remove(SDSIObject object)
           
 void writeTo(java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertCache

public CertCache()

CertCache

public CertCache(java.io.InputStream is)
          throws java.io.IOException
Method Detail

getObjects

public java.util.Set getObjects()

writeTo

public void writeTo(java.io.OutputStream os)
             throws java.io.IOException
java.io.IOException

fullClosure

public void fullClosure()

incrementalClosure

public void incrementalClosure(Cert cert)

getReducingPairs

public java.util.Set getReducingPairs(Cert cert)

getSignatures

public java.util.Set getSignatures(SDSIObject object)

getDefs

public java.util.Set getDefs(SDSIPrincipal issuer,
                             java.lang.String name)

getAuths

public java.util.Set getAuths(SDSIPrincipal issuer,
                              Tag tag)

get

public SDSIObject get(Hash hash)

add

public void add(SDSIObject object)

remove

public void remove(SDSIObject object)

getIssuerSig

public SDSISignature getIssuerSig(Cert cert)

getKey

public SDSIPublicKey getKey(Hash hash)

getKey

public SDSIPublicKey getKey(SDSIPrincipal principal)

getDisplayName

public java.lang.String getDisplayName(SDSIPrincipal owner,
                                       SDSIObject o)

getNameFor

public java.lang.String getNameFor(SDSIPrincipal owner,
                                   SDSIPrincipal principal)