org.hardtokenmgmt.mailsigner.selectors
Class MailSignerDisplayTokenSelector

java.lang.Object
  extended by org.hardtokenmgmt.mailsigner.selectors.MailSignerDisplayTokenSelector
All Implemented Interfaces:
DisplayTokenSelector

public class MailSignerDisplayTokenSelector
extends java.lang.Object
implements DisplayTokenSelector

The default token selector selecting the logo depending on the token label of the hard token data ws or

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

Constructor Summary
MailSignerDisplayTokenSelector()
           
 
Method Summary
 java.lang.String getLogo(java.lang.Object tokenData)
          Selecting the logo depending on the tokendata Always returns the mailsigner logo.
 java.lang.String getName(java.lang.Object tokenData)
          Returning the display name of the token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailSignerDisplayTokenSelector

public MailSignerDisplayTokenSelector()
Method Detail

getLogo

public java.lang.String getLogo(java.lang.Object tokenData)
Selecting the logo depending on the tokendata Always returns the mailsigner logo.

Specified by:
getLogo in interface DisplayTokenSelector
Returns:
a string pointing to a smart card icon image
See Also:
DisplayTokenSelector.getLogo(Object)

getName

public java.lang.String getName(java.lang.Object tokenData)
Returning the display name of the token

Specified by:
getName in interface DisplayTokenSelector
Parameters:
tokenData - the actual class have to be supported by the implementation usually an IToken or TokenDataBean, or HardTokenDataWS for EJBCA
Returns:
the name of the token type displayed.
See Also:
DisplayTokenSelector.getName(Object)