org.hardtokenmgmt.tools.tokentest
Class NetIdSetCos441TokenTester

java.lang.Object
  extended by org.hardtokenmgmt.tools.tokentest.NetIdSetCos441TokenTester
All Implemented Interfaces:
ITokenTester

public class NetIdSetCos441TokenTester
extends java.lang.Object
implements ITokenTester

TokenTester containing tests specific for NetIDSetCos441 Token implementation

Version:
$Id$
Author:
Philip Vendil 12 Feb 2009

Constructor Summary
NetIdSetCos441TokenTester()
           
 
Method Summary
 java.lang.String getTestSuiteName()
           
 void initialize(java.util.Properties props, java.io.PrintStream out)
          Method called directly after the class have been instantiated.
 boolean runTests(IToken token)
          Method used to perform tests of the token, should send feed back of the tests to the given print stream.
 boolean tokenSupported(java.lang.String tokenImpl)
          Method used to check if this implementation is supported by the given token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetIdSetCos441TokenTester

public NetIdSetCos441TokenTester()
Method Detail

getTestSuiteName

public java.lang.String getTestSuiteName()
Specified by:
getTestSuiteName in interface ITokenTester
Returns:
the name of this test suite.
See Also:
ITokenTester.getTestSuiteName()

initialize

public void initialize(java.util.Properties props,
                       java.io.PrintStream out)
Description copied from interface: ITokenTester
Method called directly after the class have been instantiated.

Specified by:
initialize in interface ITokenTester
Parameters:
props - the entire testtoken.property file, if file doesn't
out - the stream to print status output of the tests. exist will an empty Properties be used.
See Also:
ITokenTester.initialize(Properties, PrintStream)

runTests

public boolean runTests(IToken token)
                 throws java.lang.Exception
Description copied from interface: ITokenTester
Method used to perform tests of the token, should send feed back of the tests to the given print stream.

Specified by:
runTests in interface ITokenTester
Parameters:
token - the token to perform tests on
Returns:
true if tests were successful, false otherwise.
Throws:
java.lang.Exception
See Also:
ITokenTester.runTests(IToken)

tokenSupported

public boolean tokenSupported(java.lang.String tokenImpl)
Description copied from interface: ITokenTester
Method used to check if this implementation is supported by the given token

Specified by:
tokenSupported in interface ITokenTester
Parameters:
tokenImpl - class path to check
Returns:
true if the tests is supported by this token.