Class PBKDF2Test

java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
org.opensaml.core.testing.XMLObjectBaseTestCase
org.opensaml.xmlsec.derivation.impl.PBKDF2Test

public class PBKDF2Test extends org.opensaml.core.testing.XMLObjectBaseTestCase
  • Constructor Details

    • PBKDF2Test

      public PBKDF2Test()
  • Method Details

    • defaultProperties

      public void defaultProperties() throws Exception
      Throws:
      Exception
    • explicitProperties

      public void explicitProperties() throws Exception
      Throws:
      Exception
    • initBadSalt

      public void initBadSalt() throws Exception
      Throws:
      Exception
    • initBadKeyLength

      public void initBadKeyLength() throws Exception
      Throws:
      Exception
    • initBadPRF

      public void initBadPRF() throws Exception
      Throws:
      Exception
    • xmlGenerationSuccess

      public void xmlGenerationSuccess() throws Exception
      Throws:
      Exception
    • fromXMLObject

      public void fromXMLObject() throws Exception
      Throws:
      Exception
    • cloning

      public void cloning() throws Exception
      Throws:
      Exception
    • deriveWithDefaults

      public void deriveWithDefaults() throws Exception
      Throws:
      Exception
    • deriveWithExplicitProperties

      public void deriveWithExplicitProperties() throws Exception
      Throws:
      Exception
    • deriveWithKeyLengthMismatch

      public void deriveWithKeyLengthMismatch() throws Exception
      Throws:
      Exception
    • unknownKeyAlgorithm

      public void unknownKeyAlgorithm() throws Exception
      Throws:
      Exception
    • nonKeyLengthAlgorithm

      public void nonKeyLengthAlgorithm() throws Exception
      Throws:
      Exception
    • nonKeyLengthAlgorithmWithSpecifiedLength

      public void nonKeyLengthAlgorithmWithSpecifiedLength() throws Exception
      Throws:
      Exception
    • setupTestVectorAlgorithms

      @BeforeClass public void setupTestVectorAlgorithms()
    • teardownTestVectorAlgorithms

      @AfterClass public void teardownTestVectorAlgorithms()
    • whitespace

      private String whitespace(String input)
    • testVectors

      @DataProvider(name="testVectors") public Object[][] testVectors() throws org.apache.commons.codec.DecoderException, EncodingException
      Throws:
      org.apache.commons.codec.DecoderException
      EncodingException
    • deriveTestVectors

      public void deriveTestVectors(byte[] secret, String keyAlgorithm, String prfAlgorithm, String salt, Integer iterationCount, byte[] keyBytes) throws Exception
      Throws:
      Exception