com.atlassian.security.auth.trustedapps
Class TestBouncyCastleEncryptionProvider

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycom.atlassian.security.auth.trustedapps.TestBouncyCastleEncryptionProvider
All Implemented Interfaces:
junit.framework.Test

public class TestBouncyCastleEncryptionProvider
extends junit.framework.TestCase


Constructor Summary
TestBouncyCastleEncryptionProvider()
           
 
Method Summary
 void testBCSecretKeyFactory()
           
 void testDecodeBadMagicNumber()
           
 void testDecodeBadSecretKey()
           
 void testDecodeInvalidCertificate()
           
 void testDecodeNullMagicNumberVersion0()
           
 void testDecodeNullMagicNumberVersion1()
           
 void testDecodeNumberFormatException()
           
 void testDecodeSecretKey()
           
 void testGetApplicationCertificateMalformedUrl()
           
 void testGetApplicationCertificateNotFoundAtAll()
           
 void testGetApplicationCertificateReturnsEmpty()
           
 void testGetApplicationCertificateReturnsProperly()
           
 void testSecretKeyValidatorInValidatesLeadingZero()
           
 void testSecretKeyValidatorInValidatesLengthGreaterThan16()
           
 void testSecretKeyValidatorInValidatesLengthLessThan16()
           
 void testSecretKeyValidatorValidatesLength16()
           
 void testValidatingSecretKeyFactory()
           
 
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

TestBouncyCastleEncryptionProvider

public TestBouncyCastleEncryptionProvider()
Method Detail

testGetApplicationCertificateReturnsEmpty

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

testGetApplicationCertificateNotFoundAtAll

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

testGetApplicationCertificateMalformedUrl

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

testGetApplicationCertificateReturnsProperly

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

testDecodeBadSecretKey

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

testDecodeSecretKey

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

testDecodeBadMagicNumber

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

testDecodeInvalidCertificate

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

testDecodeNumberFormatException

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

testDecodeNullMagicNumberVersion0

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

testDecodeNullMagicNumberVersion1

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

testBCSecretKeyFactory

public void testBCSecretKeyFactory()

testSecretKeyValidatorValidatesLength16

public void testSecretKeyValidatorValidatesLength16()

testSecretKeyValidatorInValidatesLengthLessThan16

public void testSecretKeyValidatorInValidatesLengthLessThan16()

testSecretKeyValidatorInValidatesLengthGreaterThan16

public void testSecretKeyValidatorInValidatesLengthGreaterThan16()

testSecretKeyValidatorInValidatesLeadingZero

public void testSecretKeyValidatorInValidatesLeadingZero()

testValidatingSecretKeyFactory

public void testValidatingSecretKeyFactory()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.