Class ECDHTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.xmlsec.encryption.support.tests.ECDHTest
-
public class ECDHTest extends XMLObjectBaseTestCase
-
-
Field Summary
Fields Modifier and Type Field Description private BasicDecryptionConfigurationdecryptConfigprivate CriteriaSetdecryptCriteriaprivate DecryptionParametersResolverdecryptParamsResolverprivate BasicEncryptionConfigurationencConfigprivate CriteriaSetencCriteriaprivate EncryptionParametersResolverencParamsResolverprivate Encrypterencrypterprivate CollectionCredentialResolverlocalCredentialResolverprivate LocalKeyInfoCredentialResolverlocalKeyInfoResolverprivate CredentialrecipientCredPrivateprivate CredentialrecipientCredPublicprivate StringtargetFile-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description ECDHTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeClass()voidbeforeMethod()voidroundtripDirectDataEncryption()voidroundtripDirectDataEncryptionWithAlgorithmOverrides()voidroundtripWithKeyWrap()voidroundtripWithKeyWrapAndAlgorithmOverrides()voidroundtripWithPBKDF2()private voidtestRoundtrip(String expectedDataAlgo, String expectedKEKAlgo)private voidtestRoundtrip(String expectedDataAlgo, String expectedKEKAlgo, String expectedKDFAlgo)-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
targetFile
private String targetFile
-
recipientCredPrivate
private Credential recipientCredPrivate
-
recipientCredPublic
private Credential recipientCredPublic
-
localCredentialResolver
private CollectionCredentialResolver localCredentialResolver
-
localKeyInfoResolver
private LocalKeyInfoCredentialResolver localKeyInfoResolver
-
encrypter
private Encrypter encrypter
-
encParamsResolver
private EncryptionParametersResolver encParamsResolver
-
encCriteria
private CriteriaSet encCriteria
-
encConfig
private BasicEncryptionConfiguration encConfig
-
decryptParamsResolver
private DecryptionParametersResolver decryptParamsResolver
-
decryptCriteria
private CriteriaSet decryptCriteria
-
decryptConfig
private BasicDecryptionConfiguration decryptConfig
-
-
Method Detail
-
beforeClass
@BeforeClass public void beforeClass() throws Exception
- Throws:
Exception
-
beforeMethod
@BeforeMethod public void beforeMethod() throws Exception
- Throws:
Exception
-
roundtripDirectDataEncryption
public void roundtripDirectDataEncryption() throws Exception- Throws:
Exception
-
roundtripDirectDataEncryptionWithAlgorithmOverrides
public void roundtripDirectDataEncryptionWithAlgorithmOverrides() throws Exception- Throws:
Exception
-
roundtripWithKeyWrapAndAlgorithmOverrides
public void roundtripWithKeyWrapAndAlgorithmOverrides() throws Exception- Throws:
Exception
-
testRoundtrip
private void testRoundtrip(String expectedDataAlgo, String expectedKEKAlgo) throws Exception
- Throws:
Exception
-
-