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

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

public class CryptoIdentityProvider
extends Object
implements IdentityProvider

This IdentityProvider gets its identity from a keystore. The location of the keystore and the password must be defined in a crypto.properties file on the classpath. The property name for the keystore location is "org.apache.ws.security.crypto.merlin.file" and the property name for the password is "org.apache.ws.security.crypto.merlin.keystore.password".


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

Constructor Detail

CryptoIdentityProvider

public CryptoIdentityProvider()
Method Detail

getIdentity

public Identity getIdentity()
                     throws RemoteException,
                            UserAbort
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
Throws:
UserAbort - if the user cancelled the operation
RemoteException


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