Class ComplexEncryptionTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.saml2.encryption.tests.ComplexEncryptionTest
-
public class ComplexEncryptionTest extends XMLObjectBaseTestCase
Tests for encryption using single and multicast key encryption keys, and peer vs. inline key placement.
-
-
Field Summary
Fields Modifier and Type Field Description private StringalgoURIprivate DataEncryptionParametersencParamsprivate Encrypterencrypterprivate StringexpectedKeyNameRSAprivate StringexpectedRecipientAESprivate StringexpectedRecipientRSAprivate KeyInfokekKeyInfoRSAprivate KeyEncryptionParameterskekParamsAESprivate List<KeyEncryptionParameters>kekParamsListprivate KeyEncryptionParameterskekParamsRSAprivate StringkekURIAESprivate StringkekURIRSAprivate KeyInfokeyInfo-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description ComplexEncryptionTest()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestMulticastKEKPeer()Test encryption with multicast key encryption keys with key placement as peer.voidtestReuse()Test that reuse is allowed with same key encryption parameters.voidtestSingleKEKInline()Test encryption with a single key encryption key with key placement inline.voidtestSingleKEKPeer()Test encryption with a single key encryption key with key placement as peer.-
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
-
encrypter
private Encrypter encrypter
-
encParams
private DataEncryptionParameters encParams
-
kekParamsList
private List<KeyEncryptionParameters> kekParamsList
-
kekParamsRSA
private KeyEncryptionParameters kekParamsRSA
-
kekParamsAES
private KeyEncryptionParameters kekParamsAES
-
keyInfo
private KeyInfo keyInfo
-
kekKeyInfoRSA
private KeyInfo kekKeyInfoRSA
-
algoURI
private String algoURI
-
kekURIRSA
private String kekURIRSA
-
kekURIAES
private String kekURIAES
-
expectedKeyNameRSA
private String expectedKeyNameRSA
-
expectedRecipientRSA
private String expectedRecipientRSA
-
expectedRecipientAES
private String expectedRecipientAES
-
-
Method Detail
-
testSingleKEKInline
public void testSingleKEKInline()
Test encryption with a single key encryption key with key placement inline.
-
testSingleKEKPeer
public void testSingleKEKPeer()
Test encryption with a single key encryption key with key placement as peer.
-
testMulticastKEKPeer
public void testMulticastKEKPeer()
Test encryption with multicast key encryption keys with key placement as peer.
-
testReuse
public void testReuse()
Test that reuse is allowed with same key encryption parameters.
-
-