anon.client
Class BasicTrustModel

java.lang.Object
  extended by java.util.Observable
      extended by anon.client.BasicTrustModel
All Implemented Interfaces:
ITrustModel
Direct Known Subclasses:
AbstractMixCascadeContainer, TrustModel

public class BasicTrustModel
extends java.util.Observable
implements ITrustModel

A trust model that only checks if a previously done signature verification was successful.

Author:
Rolf Wendolsky

Constructor Summary
BasicTrustModel()
           
 
Method Summary
 void checkTrust(MixCascade a_cascade)
           
 boolean isTrusted(MixCascade a_cascade)
          Does a call on checkTrust() after checking the isShownAsTrusted() attribute of the given cascade.
 boolean isTrusted(MixCascade a_cascade, java.lang.StringBuffer buff)
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTrustModel

public BasicTrustModel()
Method Detail

checkTrust

public void checkTrust(MixCascade a_cascade)
                throws TrustException,
                       java.security.SignatureException
Specified by:
checkTrust in interface ITrustModel
Throws:
TrustException
java.security.SignatureException

isTrusted

public final boolean isTrusted(MixCascade a_cascade)
Does a call on checkTrust() after checking the isShownAsTrusted() attribute of the given cascade. Should be called by GUI/user controller methods only, not for checking the trust to make a connection!

Specified by:
isTrusted in interface ITrustModel
Parameters:
a_cascade - MixCascade
Returns:
boolean

isTrusted

public final boolean isTrusted(MixCascade a_cascade,
                               java.lang.StringBuffer buff)