org.hardtokenmgmt.core.ui
Class DefaultDisplayTokenSelector

java.lang.Object
  extended by org.hardtokenmgmt.core.ui.DefaultDisplayTokenSelector
All Implemented Interfaces:
DisplayTokenSelector

public class DefaultDisplayTokenSelector
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
DefaultDisplayTokenSelector()
           
 
Method Summary
 java.lang.String getLogo(java.lang.Object tokenData)
          Selecting the logo depending on the hardTokenDataVOWS If the hardTokenDataVOWs is null is an empty card displayed Othervise is the image for smartcard, spare card and project card shown respectively
 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

DefaultDisplayTokenSelector

public DefaultDisplayTokenSelector()
Method Detail

getLogo

public java.lang.String getLogo(java.lang.Object tokenData)
Selecting the logo depending on the hardTokenDataVOWS If the hardTokenDataVOWs is null is an empty card displayed Othervise is the image for smartcard, spare card and project card shown respectively

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)