uk.ac.soton.itinnovation.grid.utils
Class UsernameIdentityProvider
java.lang.Object
uk.ac.soton.itinnovation.grid.utils.UsernameIdentityProvider
- All Implemented Interfaces:
- IdentityProvider
public class UsernameIdentityProvider
- extends Object
- implements IdentityProvider
- Author:
- bmn
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UsernameIdentityProvider
public UsernameIdentityProvider(String userName,
String dnDomain,
String ksAlias,
String ksPassword,
PrivateKey issuerPrivateKey,
X509Certificate issuerCertificate)
- Creates a new instance of UsernameIdentityProvider for a user
- Parameters:
userName - name of the user whose certificate to be generateddnDomain - the domain hierarchy to construct a user DNksAlias - the alias to be used in the keystoreksPassword - password of the key and the keystoreissuerPrivateKey - issuer private keyissuerCertificate - the issuer certificate
getIdentity
public Identity getIdentity()
throws RemoteException,
UserAbort
- returns an identity for the user
- Specified by:
getIdentity in interface IdentityProvider
- Returns:
- the identity to be used
- Throws:
UserAbort - if the user cancelled the operation
RemoteException
setKeyAlgorithm
public void setKeyAlgorithm(String keyAlgorithm)
getKeyAlgorithm
public String getKeyAlgorithm()
setSigAlgorithm
public void setSigAlgorithm(String sigAlgorithm)
getSigAlgorithm
public String getSigAlgorithm()
setValidityPeriod
public void setValidityPeriod(int validityPeriod)
getValidityPeriod
public int getValidityPeriod()
setKeySize
public void setKeySize(int keySize)
getKeySize
public int getKeySize()
Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.