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

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

public class UsernameIdentityProvider
extends Object
implements IdentityProvider

Author:
bmn

Constructor Summary
UsernameIdentityProvider(String userName, String dnDomain, String ksAlias, String ksPassword, PrivateKey issuerPrivateKey, X509Certificate issuerCertificate)
          Creates a new instance of UsernameIdentityProvider for a user
 
Method Summary
 Identity getIdentity()
          returns an identity for the user
 String getKeyAlgorithm()
           
 int getKeySize()
           
 String getSigAlgorithm()
           
 int getValidityPeriod()
           
 void setKeyAlgorithm(String keyAlgorithm)
           
 void setKeySize(int keySize)
           
 void setSigAlgorithm(String sigAlgorithm)
           
 void setValidityPeriod(int validityPeriod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 generated
dnDomain - the domain hierarchy to construct a user DN
ksAlias - the alias to be used in the keystore
ksPassword - password of the key and the keystore
issuerPrivateKey - issuer private key
issuerCertificate - the issuer certificate
Method Detail

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.