org.alfresco.encryption
Class KeyStoreKeyProviderTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.encryption.KeyStoreKeyProviderTest
All Implemented Interfaces:
junit.framework.Test

public class KeyStoreKeyProviderTest
extends junit.framework.TestCase

Tests KeystoreKeyProvider

Since:
4.0

Constructor Summary
KeyStoreKeyProviderTest()
           
 
Method Summary
 void DISABLED_testSpringCrypto()
          TODO: Do we need spring-crypto when it is V1.0?
protected static org.alfresco.encryption.KeyResourceLoader getKeyStoreLoader(java.util.Map passwords)
           
 void setUp()
           
 void testAliasWithCorrectPassword_One()
           
 void testAliasWithCorrectPassword_Three()
           
 void testAliasWithCorrectPassword_Two()
           
 void testAliasWithIncorrectPassword_One()
           
 void testAliasWithIncorrectPassword_Two()
           
 void testKeyStoreWithOnlyAliasPasswords()
           
 void testNoKeyStorePasswords()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyStoreKeyProviderTest

public KeyStoreKeyProviderTest()
Method Detail

getKeyStoreLoader

protected static org.alfresco.encryption.KeyResourceLoader getKeyStoreLoader(java.util.Map passwords)

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testNoKeyStorePasswords

public void testNoKeyStorePasswords()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testKeyStoreWithOnlyAliasPasswords

public void testKeyStoreWithOnlyAliasPasswords()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testAliasWithIncorrectPassword_One

public void testAliasWithIncorrectPassword_One()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testAliasWithIncorrectPassword_Two

public void testAliasWithIncorrectPassword_Two()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testAliasWithCorrectPassword_One

public void testAliasWithCorrectPassword_One()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testAliasWithCorrectPassword_Two

public void testAliasWithCorrectPassword_Two()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testAliasWithCorrectPassword_Three

public void testAliasWithCorrectPassword_Three()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

DISABLED_testSpringCrypto

public void DISABLED_testSpringCrypto()
                               throws java.lang.Throwable
TODO: Do we need spring-crypto when it is V1.0?

Throws:
java.lang.Throwable


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.