org.hardtokenmgmt.ui.activatecard
Class DefaultActivateCardCertSelector

java.lang.Object
  extended by org.hardtokenmgmt.ui.activatecard.DefaultActivateCardCertSelector
All Implemented Interfaces:
ActivateCardCertSelector

public class DefaultActivateCardCertSelector
extends java.lang.Object
implements ActivateCardCertSelector

Default cert selector that takes the parameter 'activatecardcontroller.certissuerdn' containing the issuer dn of certificate that should be selected. If there exists several certificates with same issuer have no guarantee that the same is always returned

Version:
$Id$
Author:
Philip Vendil 2007 maj 10

Constructor Summary
DefaultActivateCardCertSelector()
           
 
Method Summary
 java.security.cert.X509Certificate getActivationCertificate(org.hardtokenmgmt.ws.gen.HardTokenDataWS hardToken)
          Method that should return the certificate on the token that should be used for republishing in EJBCA.
 java.security.cert.X509Certificate getActivationCertificate(IToken token)
          Method that should return the certificate on the token that should be used for republishing in EJBCA.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultActivateCardCertSelector

public DefaultActivateCardCertSelector()
Method Detail

getActivationCertificate

public java.security.cert.X509Certificate getActivationCertificate(IToken token)
Description copied from interface: ActivateCardCertSelector
Method that should return the certificate on the token that should be used for republishing in EJBCA.

Specified by:
getActivationCertificate in interface ActivateCardCertSelector
Parameters:
token - that is going to be activated.
Returns:
the certificate used or null if it couldn't be found.
See Also:
ActivateCardCertSelector.getActivationCertificate(IToken token)

getActivationCertificate

public java.security.cert.X509Certificate getActivationCertificate(org.hardtokenmgmt.ws.gen.HardTokenDataWS hardToken)
Description copied from interface: ActivateCardCertSelector
Method that should return the certificate on the token that should be used for republishing in EJBCA.

Specified by:
getActivationCertificate in interface ActivateCardCertSelector
Parameters:
hardToken - that is going to be activated.
Returns:
the certificate used or null if it couldn't be found.