org.jboss.test
Class SecurityProviderlTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jboss.test.SecurityProviderlTestCase
All Implemented Interfaces:
junit.framework.Test

public class SecurityProviderlTestCase
extends junit.framework.TestCase

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

Version:
$Revision: 1.1.26.2 $
Author:
Scott.Stark@jboss.org

Constructor Summary
SecurityProviderlTestCase(String name)
           
 
Method Summary
static void main(String[] args)
           
static junit.framework.Test suite()
           
 void testSHAInterleave()
          Compare Util.sessionKeyHash against the SHA-SRP MessageDigest.
 void testSHAReverseInterleave()
          This should match the Util.sessionKeyHash
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityProviderlTestCase

public SecurityProviderlTestCase(String name)
Method Detail

testSHAInterleave

public void testSHAInterleave()
                       throws 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:
Exception

testSHAReverseInterleave

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

Throws:
Exception

suite

public static junit.framework.Test suite()

main

public static void main(String[] args)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.