uk.ac.soton.itinnovation.grid.client.helpers
Class ServiceInputHandler

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.client.helpers.ServiceInputHandler
All Implemented Interfaces:
UserInputHandler
Direct Known Subclasses:
SwingInputHandler, TestInputHandler

public class ServiceInputHandler
extends Object
implements UserInputHandler

A non-interactive UserInputHandler for services.


Constructor Summary
ServiceInputHandler()
           
 
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
 

Constructor Detail

ServiceInputHandler

public ServiceInputHandler()
Method Detail

reportError

public void reportError(Exception ex,
                        Object object)
Logs an error using log4j.

Specified by:
reportError in interface UserInputHandler
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

queryUnknownCertificate

public UnknownCertificateResponse queryUnknownCertificate(X509Certificate[] chain)
Handles unknown certificates.

Specified by:
queryUnknownCertificate in interface UserInputHandler
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.