org.hardtokenmgmt.tools.tokentest
Interface ITokenTester

All Known Implementing Classes:
NetIdSetCos441TokenTester

public interface ITokenTester

Interface that all token testers should implement. The implementation is in charge Important, remember to register the class either in TestToken class or by the setting testtoken.testimpl in testtoken.properties.

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

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
 

Method Detail

initialize

void initialize(java.util.Properties props,
                java.io.PrintStream out)
Method called directly after the class have been instantiated.

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.

getTestSuiteName

java.lang.String getTestSuiteName()
Returns:
the name of this test suite.

tokenSupported

boolean tokenSupported(java.lang.String tokenImpl)
Method used to check if this implementation is supported by the given token

Parameters:
tokenImpl - class path to check
Returns:
true if the tests is supported by this token.

runTests

boolean runTests(IToken token)
                 throws java.lang.Exception
Method used to perform tests of the token, should send feed back of the tests to the given print stream.

Parameters:
token - the token to perform tests on
Returns:
true if tests were successful, false otherwise.
Throws:
java.lang.Exception