org.hardtokenmgmt.mailsigner.selectors
Class MailSignerCertSelector

java.lang.Object
  extended by org.hardtokenmgmt.mailsigner.selectors.MailSignerCertSelector
All Implemented Interfaces:
CertSelector

public class MailSignerCertSelector
extends java.lang.Object
implements CertSelector

TODO

Version:
$Id$
Author:
Philip Vendil 2007 apr 17

Constructor Summary
MailSignerCertSelector()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailSignerCertSelector

public MailSignerCertSelector()
Method Detail

getLogo

public java.lang.String getLogo(java.security.cert.X509Certificate cert)
Specified by:
getLogo in interface CertSelector
Parameters:
cert - that should be analysed
Returns:
the image filename of the logotype.

getName

public java.lang.String getName(java.security.cert.X509Certificate cert)
Specified by:
getName in interface CertSelector
Parameters:
cert - that should be analysed
Returns:
name related to the certificate.

getAssociatedPINType

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

Specified by:
getAssociatedPINType in interface CertSelector
Parameters:
cert - to get the PIN type for
Returns:
a IToken.PINTYPE_ constant

getCertLabel

public java.lang.String getCertLabel(java.security.cert.X509Certificate cert)
Description copied from interface: CertSelector
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.

Specified by:
getCertLabel in interface CertSelector
Parameters:
cert - to retrieve the certificate label for.
Returns:
the certificate label.