Class DHWithLegacyKDFTest
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
org.opensaml.core.testing.XMLObjectBaseTestCase
org.opensaml.xmlsec.encryption.support.tests.DHWithLegacyKDFTest
public class DHWithLegacyKDFTest
extends org.opensaml.core.testing.XMLObjectBaseTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BasicDecryptionConfigurationprivate CriteriaSetprivate DecryptionParametersResolverprivate BasicEncryptionConfigurationprivate BasicEncryptionConfigurationprivate CriteriaSetprivate EncryptionParametersResolverprivate Encrypterprivate CollectionCredentialResolverprivate LocalKeyInfoCredentialResolverprivate Credentialprivate Credentialprivate StringFields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidprivate voidtestRoundtrip(String expectedDataAlgo, String expectedKEKAlgo, String expectedDigestMethod, boolean nonceExpected) Methods 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
-
Field Details
-
targetFile
-
recipientCredPrivate
-
recipientCredPublic
-
localCredentialResolver
-
localKeyInfoResolver
-
encrypter
-
encParamsResolver
-
encCriteria
-
encConfig
-
encConfig2
-
decryptParamsResolver
-
decryptCriteria
-
decryptConfig
-
-
Constructor Details
-
DHWithLegacyKDFTest
public DHWithLegacyKDFTest()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
beforeMethod
- Throws:
Exception
-
roundtripDirectDataEncryption
- Throws:
Exception
-
roundtripDirectDataEncryptionWithAlgorithmOverrides
- Throws:
Exception
-
roundtripWithKeyWrap
- Throws:
Exception
-
roundtripWithKeyWrapAndAlgorithmOverrides
- Throws:
Exception
-
roundtripWithSHA512AndNoNonce
- Throws:
Exception
-
testRoundtrip
private void testRoundtrip(String expectedDataAlgo, String expectedKEKAlgo, String expectedDigestMethod, boolean nonceExpected) throws Exception - Throws:
Exception
-