public class SimpleEncryptionTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private String |
algoURI |
private DataEncryptionParameters |
encParams |
private org.opensaml.saml.saml2.encryption.Encrypter |
encrypter |
private String |
expectedKeyName |
private List<KeyEncryptionParameters> |
kekParamsList |
private KeyEncryptionParameters |
kekParamsRSA |
private String |
kekURIRSA |
private org.opensaml.xmlsec.signature.KeyInfo |
keyInfo |
| Constructor and Description |
|---|
SimpleEncryptionTest()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testAssertion()
Test basic encryption with symmetric key, no key wrap,
set key name in passed KeyInfo object.
|
void |
testAssertionAsID()
Test basic encryption with symmetric key, no key wrap,
set key name in passed KeyInfo object.
|
void |
testAttribute()
Test basic encryption with symmetric key, no key wrap,
set key name in passed KeyInfo object.
|
void |
testAutoKeyGen()
Test that a data encryption key is auto-generated if it is not supplied.
|
void |
testAutoKeyGenNoKEK()
Test that an error is thrown if the no data encryption credential is supplied and no KEK is specified.
|
void |
testNameID()
Test basic encryption with symmetric key, no key wrap,
set key name in passed KeyInfo object.
|
void |
testNewID()
Test basic encryption with symmetric key, no key wrap,
set key name in passed KeyInfo object.
|
void |
testReuse()
Test that reuse of the encrypter with the same encryption and key encryption parameters is allowed.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementprivate org.opensaml.saml.saml2.encryption.Encrypter encrypter
private DataEncryptionParameters encParams
private KeyEncryptionParameters kekParamsRSA
private List<KeyEncryptionParameters> kekParamsList
private org.opensaml.xmlsec.signature.KeyInfo keyInfo
private String algoURI
private String expectedKeyName
private String kekURIRSA
public void testAssertion()
public void testAssertionAsID()
public void testNameID()
public void testAttribute()
public void testNewID()
public void testReuse()
public void testAutoKeyGen()
public void testAutoKeyGenNoKEK()
Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.