org.jboss.test
Class SecurityProviderlTestCase

java.lang.Object
  extended byTestCase
      extended byorg.jboss.test.SecurityProviderlTestCase

public class SecurityProviderlTestCase
extends TestCase

Tests of the org.jboss.crypto.* Java Cryptography Architecture plugin classes

See Also:
Serialized Form

Constructor Summary
SecurityProviderlTestCase(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
static Test suite()
           
 void testSHAInterleave()
          Compare Util.sessionKeyHash against the SHA-SRP MessageDigest.
 void testSHAReverseInterleave()
          This should match the Util.sessionKeyHash
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityProviderlTestCase

public SecurityProviderlTestCase(java.lang.String name)
Method Detail

testSHAInterleave

public void testSHAInterleave()
                       throws java.lang.Exception
Compare Util.sessionKeyHash against the SHA-SRP MessageDigest. This will not match the Util.sessionKeyHash as the algorithm described in RFC2945 does not reverse the odd and even byte arrays as is done in Util.sessionKeyHash.

Throws:
java.lang.Exception

testSHAReverseInterleave

public void testSHAReverseInterleave()
                              throws java.lang.Exception
This should match the Util.sessionKeyHash

Throws:
java.lang.Exception

suite

public static Test suite()

main

public static void main(java.lang.String[] args)