uk.ac.soton.itinnovation.grid.utils
Class TestIdentityProvider
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRUST_EVERYONE
public static final CertificateTrustValidator TRUST_EVERYONE
- A CertificateTrustValidator that trusts anything.
Use this only for testing!
- See Also:
Transport#setCertificateTrustValidator
TestIdentityProvider
public TestIdentityProvider(String username)
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.