public class DecryptionSignedContentTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver |
encKeyResolver
Resolver for the data encryption key.
|
private DataEncryptionParameters |
encParams
The data encryption parameters object.
|
private String |
idValue
The ID value used as the signature Reference URI attribute value, set on root SimpleXMLObject.
|
private org.opensaml.security.credential.Credential |
signingCredential
Credential used to sign and verify.
|
| Constructor and Description |
|---|
DecryptionSignedContentTest() |
| Modifier and Type | Method and Description |
|---|---|
private Element |
getSignedElement()
Creates a signed SimpleXMLObject element.
|
protected void |
setUp() |
void |
testDecryptAndVerifySignedElement()
Test decryption of signed object and then verify signature.
|
void |
testPlainRoundTripSignature()
Just a sanity check that unit test is set up correctly.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate org.opensaml.security.credential.Credential signingCredential
private DataEncryptionParameters encParams
private org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver encKeyResolver
private String idValue
public void testDecryptAndVerifySignedElement()
throws org.opensaml.core.xml.io.MarshallingException,
org.opensaml.core.xml.io.UnmarshallingException,
EncryptionException,
DecryptionException,
net.shibboleth.utilities.java.support.xml.XMLParserException,
IOException,
org.opensaml.xmlsec.signature.support.SignatureException
IOExceptionorg.opensaml.xmlsec.signature.support.SignatureExceptionorg.opensaml.core.xml.io.MarshallingExceptionorg.opensaml.core.xml.io.UnmarshallingExceptionEncryptionExceptionDecryptionExceptionnet.shibboleth.utilities.java.support.xml.XMLParserExceptionpublic void testPlainRoundTripSignature()
throws org.opensaml.core.xml.io.MarshallingException,
org.opensaml.core.xml.io.UnmarshallingException,
org.opensaml.xmlsec.signature.support.SignatureException
org.opensaml.xmlsec.signature.support.SignatureExceptionorg.opensaml.core.xml.io.MarshallingExceptionorg.opensaml.core.xml.io.UnmarshallingExceptionprivate Element getSignedElement() throws org.opensaml.core.xml.io.MarshallingException, org.opensaml.xmlsec.signature.support.SignatureException
org.opensaml.core.xml.io.MarshallingExceptionorg.opensaml.xmlsec.signature.support.SignatureExceptionCopyright © 1999–2015. All rights reserved.