uk.ac.soton.itinnovation.grid.utils
Class TestIdentityProvider

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.utils.TestIdentityProvider
All Implemented Interfaces:
IdentityProvider

public class TestIdentityProvider
extends Object
implements IdentityProvider

A simple IdentityProvider intended for testing. It creates a new keystore with a self-signed certificate.


Field Summary
static CertificateTrustValidator TRUST_EVERYONE
          A CertificateTrustValidator that trusts anything.
 
Constructor Summary
TestIdentityProvider(String username)
           
 
Method Summary
 Identity getIdentity()
          Get identity to use to sign a SOAP message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRUST_EVERYONE

public static final CertificateTrustValidator TRUST_EVERYONE
A CertificateTrustValidator that trusts anything. Use this only for testing!

See Also:
Transport#setCertificateTrustValidator
Constructor Detail

TestIdentityProvider

public TestIdentityProvider(String username)
Method Detail

getIdentity

public Identity getIdentity()
Description copied from interface: IdentityProvider
Get identity to use to sign a SOAP message. This is used by the InvocationEngine each time a SOAP message is sent. Implementations should therefore normally cache the result.

Specified by:
getIdentity in interface IdentityProvider
Returns:
the identity to be used


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