org.hardtokenmgmt.core.ui
Interface DisplayTokenSelector

All Known Implementing Classes:
DefaultDisplayTokenSelector, MailSignerDisplayTokenSelector

public interface DisplayTokenSelector

Interface used to determine the logo and name of a token to be displayed.

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

Method Summary
 java.lang.String getLogo(java.lang.Object token)
          Method that should return the name of the logo display, associated with a particular token data * @param tokenData the actual class have to be supported by the implementation usually an IToken or TokenDataBean, or HardTokenDataWS for EJBCA
 java.lang.String getName(java.lang.Object token)
          Method that should return the name displayed along with the token.
 

Method Detail

getLogo

java.lang.String getLogo(java.lang.Object token)
Method that should return the name of the logo display, associated with a particular token data * @param tokenData the actual class have to be supported by the implementation usually an IToken or TokenDataBean, or HardTokenDataWS for EJBCA

Returns:
a string pointing to a smart card icon image

getName

java.lang.String getName(java.lang.Object token)
Method that should return the name displayed along with the token. This name should already have been translated inside the implementation.

Parameters:
token - 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.