org.semanticdesktop.aperture.security.trustdecider.dialog
Class TrustDeciderDialog

java.lang.Object
  extended by org.semanticdesktop.aperture.security.trustdecider.dialog.TrustDeciderDialog
All Implemented Interfaces:
TrustDecider

public class TrustDeciderDialog
extends Object
implements TrustDecider

A TrustDeciderDialog implements a TrustDecider by presenting the supplied Certificate chain to the user and asking him whether and how it should be trusted.


Constructor Summary
TrustDeciderDialog()
           
 
Method Summary
 Decision decide(X509Certificate[] chain, boolean rootCANotValid, boolean timeNotValid)
          Lets the TrustDecider decide on the specified Certificate chain.
 Component getParent()
           
 void setParent(Component parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustDeciderDialog

public TrustDeciderDialog()
Method Detail

setParent

public void setParent(Component parent)

getParent

public Component getParent()

decide

public Decision decide(X509Certificate[] chain,
                       boolean rootCANotValid,
                       boolean timeNotValid)
Description copied from interface: TrustDecider
Lets the TrustDecider decide on the specified Certificate chain.

Specified by:
decide in interface TrustDecider
Parameters:
chain - The chain of X509Certificates to decide on.
rootCANotValid - Flag that indicates whether one of the root certificates could not be verified by one of the system certificates.
timeNotValid - Flag to indicate whether one of the root certificates is not valid yet or has expired.
Returns:
A Decision instance indicating the decision made by this TrustDecider.


Copyright © 2010 Aperture Development Team. All Rights Reserved.