org.hardtokenmgmt.core.ui
Interface CertSelector

All Known Implementing Classes:
DefaultCertSelector, MailSignerCertSelector

public interface CertSelector

Interface used to select the name of the logotype displayed and the name of the certificate displayed for a certificate

Version:
$Id$
Author:
Philip Vendil 2007 feb 28

Method Summary
 java.lang.String getAssociatedPINType(java.security.cert.X509Certificate cert)
          Method that should return only one of the IToken.PINTYPE_ constant of which pin type a certificate should be associated with.
 java.lang.String getCertLabel(java.security.cert.X509Certificate cert)
          Method that should return the certificate label for a specified certificate.
 java.lang.String getLogo(java.security.cert.X509Certificate cert)
           
 java.lang.String getName(java.security.cert.X509Certificate cert)
           
 

Method Detail

getLogo

java.lang.String getLogo(java.security.cert.X509Certificate cert)
Parameters:
cert - that should be analysed
Returns:
the image filename of the logotype.

getName

java.lang.String getName(java.security.cert.X509Certificate cert)
Parameters:
cert - that should be analysed
Returns:
name related to the certificate.

getCertLabel

java.lang.String getCertLabel(java.security.cert.X509Certificate cert)
Method that should return the certificate label for a specified certificate. A certificate label is a marking in the card profile to identify the certificate.

Parameters:
cert - to retrieve the certificate label for.
Returns:
the certificate label.

getAssociatedPINType

java.lang.String getAssociatedPINType(java.security.cert.X509Certificate cert)
Method that should return only one of the IToken.PINTYPE_ constant of which pin type a certificate should be associated with.

Parameters:
cert - to get the PIN type for
Returns:
a IToken.PINTYPE_ constant