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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classprivate classprivate classprivate class -
Field Summary
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloning()voidvoidderiveTestVectors(byte[] secret, String keyAlgorithm, String prfAlgorithm, String salt, Integer iterationCount, byte[] keyBytes) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidObject[][]voidprivate Stringwhitespace(String input) voidMethods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementMethods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
Constructor Details
-
PBKDF2Test
public PBKDF2Test()
-
-
Method Details
-
defaultProperties
- Throws:
Exception
-
explicitProperties
- Throws:
Exception
-
initBadSalt
- Throws:
Exception
-
initBadKeyLength
- Throws:
Exception
-
initBadPRF
- Throws:
Exception
-
xmlGenerationSuccess
- Throws:
Exception
-
fromXMLObject
- Throws:
Exception
-
cloning
- Throws:
Exception
-
deriveWithDefaults
- Throws:
Exception
-
deriveWithExplicitProperties
- Throws:
Exception
-
deriveWithKeyLengthMismatch
- Throws:
Exception
-
unknownKeyAlgorithm
- Throws:
Exception
-
nonKeyLengthAlgorithm
- Throws:
Exception
-
nonKeyLengthAlgorithmWithSpecifiedLength
- Throws:
Exception
-
setupTestVectorAlgorithms
@BeforeClass public void setupTestVectorAlgorithms() -
teardownTestVectorAlgorithms
@AfterClass public void teardownTestVectorAlgorithms() -
whitespace
-
testVectors
@DataProvider(name="testVectors") public Object[][] testVectors() throws org.apache.commons.codec.DecoderException, EncodingException- Throws:
org.apache.commons.codec.DecoderExceptionEncodingException
-
deriveTestVectors
public void deriveTestVectors(byte[] secret, String keyAlgorithm, String prfAlgorithm, String salt, Integer iterationCount, byte[] keyBytes) throws Exception - Throws:
Exception
-