org.mailster.crypto
Class UICertificateTrustCallBackHandler

java.lang.Object
  extended by org.mailster.crypto.UICertificateTrustCallBackHandler
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
SWTCertificateTrustCallBackHandler

public abstract class UICertificateTrustCallBackHandler
extends java.lang.Object
implements java.lang.Runnable

---
Mailster (C) 2007-2009 De Oliveira Edouard

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

See  Mailster Web Site
---

UICertificateTrustCallBackHandler.java - This interface allows a UI component to ask to the user if he wants to trust the peer certificate.

Version:
$Revision: 1.3 $, $Date: 2008/12/06 13:57:17 $
Author:
Edouard De Oliveira

Field Summary
static int ACCEPT_CERTIFICATE_CHAIN
           
protected  boolean cancelled
           
protected  java.security.cert.Certificate[] chain
           
static int REJECT_CERTIFICATE_CHAIN
           
protected  int returnCode
           
protected  java.util.concurrent.Semaphore sem
           
static int TEMPORARY_ACCEPT_CERTIFICATE_CHAIN
           
 
Constructor Summary
UICertificateTrustCallBackHandler()
           
 
Method Summary
 int getReturnCode()
           
 boolean isCancelled()
           
 void setCallBackParameters(java.util.concurrent.Semaphore sem, java.security.cert.Certificate[] chain)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

ACCEPT_CERTIFICATE_CHAIN

public static final int ACCEPT_CERTIFICATE_CHAIN
See Also:
Constant Field Values

TEMPORARY_ACCEPT_CERTIFICATE_CHAIN

public static final int TEMPORARY_ACCEPT_CERTIFICATE_CHAIN
See Also:
Constant Field Values

REJECT_CERTIFICATE_CHAIN

public static final int REJECT_CERTIFICATE_CHAIN
See Also:
Constant Field Values

returnCode

protected int returnCode

cancelled

protected boolean cancelled

sem

protected java.util.concurrent.Semaphore sem

chain

protected java.security.cert.Certificate[] chain
Constructor Detail

UICertificateTrustCallBackHandler

public UICertificateTrustCallBackHandler()
Method Detail

getReturnCode

public int getReturnCode()

isCancelled

public boolean isCancelled()

setCallBackParameters

public void setCallBackParameters(java.util.concurrent.Semaphore sem,
                                  java.security.cert.Certificate[] chain)