public class SignedAssertionTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.saml2.core.impl.AssertionBuilder |
assertionBuilder
Builder of Assertions.
|
private org.opensaml.saml.saml2.core.impl.AuthnStatementBuilder |
authnStatementBuilder
Builder of AuthnStatements.
|
private org.opensaml.security.credential.BasicCredential |
goodCredential
Credential used for signing.
|
private net.shibboleth.utilities.java.support.security.RandomIdentifierGenerationStrategy |
idGenerator
Generator of element IDs.
|
private org.opensaml.saml.saml2.core.impl.IssuerBuilder |
issuerBuilder
Builder of Issuers.
|
private Logger |
log
Class logger.
|
private SignatureBuilder |
signatureBuilder
Builder of AuthnStatements.
|
| Constructor and Description |
|---|
SignedAssertionTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testAssertionSignature()
Creates a simple Assertion, signs it and then verifies the signature.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate final Logger log
private org.opensaml.security.credential.BasicCredential goodCredential
private org.opensaml.saml.saml2.core.impl.AssertionBuilder assertionBuilder
private org.opensaml.saml.saml2.core.impl.IssuerBuilder issuerBuilder
private org.opensaml.saml.saml2.core.impl.AuthnStatementBuilder authnStatementBuilder
private SignatureBuilder signatureBuilder
private net.shibboleth.utilities.java.support.security.RandomIdentifierGenerationStrategy idGenerator
public void testAssertionSignature()
throws org.opensaml.core.xml.io.MarshallingException,
SignatureException,
org.opensaml.core.xml.io.UnmarshallingException,
org.opensaml.security.SecurityException
org.opensaml.core.xml.io.MarshallingException - thrown if the Assertion can not be marshalled into a DOMValidationException - thrown if the Signature does not validateSignatureExceptionorg.opensaml.core.xml.io.UnmarshallingExceptionorg.opensaml.security.SecurityExceptionCopyright © 1999–2015. All rights reserved.