uk.ac.soton.ecs.iam.grid.client.swing
Class SwingInputHandler

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.helpers.ServiceInputHandler
      extended by uk.ac.soton.ecs.iam.grid.client.swing.SwingInputHandler
All Implemented Interfaces:
UserInputHandler

public class SwingInputHandler
extends ServiceInputHandler

An input handler that interacts with the user through Swing dialogs.


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
SwingInputHandler()
           
 
Method Summary
 UnknownCertificateResponse queryUnknownCertificate(X509Certificate[] chain)
          Handles unknown certificates.
 void reportError(Exception ex)
          Convenience wrapper for reportError(Exception, Object), where the object is null.
 void reportError(Exception ex, Object object)
          Logs an error using log4j.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

SwingInputHandler

public SwingInputHandler()
Method Detail

reportError

public void reportError(Exception ex,
                        Object object)
Description copied from class: ServiceInputHandler
Logs an error using log4j.

Specified by:
reportError in interface UserInputHandler
Overrides:
reportError in class ServiceInputHandler
Parameters:
ex - The exception to report
object - An object (usually a string) which the exception is about.

reportError

public void reportError(Exception ex)
Description copied from interface: UserInputHandler
Convenience wrapper for reportError(Exception, Object), where the object is null.

Specified by:
reportError in interface UserInputHandler
Overrides:
reportError in class ServiceInputHandler

queryUnknownCertificate

public UnknownCertificateResponse queryUnknownCertificate(X509Certificate[] chain)
Description copied from class: ServiceInputHandler
Handles unknown certificates.

Specified by:
queryUnknownCertificate in interface UserInputHandler
Overrides:
queryUnknownCertificate in class ServiceInputHandler
Parameters:
chain - the certificate chain presented by the service (may only contain a single certificate if that is all we have available)
Returns:
ACCEPT_THIS_MESSAGE if the current EPR trusts this certificate, or null otherwise


Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.