public class SignedAssertionTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.common.SAMLObjectBuilder<org.opensaml.saml.saml2.core.Assertion> |
assertionBuilder
Builder of Assertions.
|
private org.opensaml.saml.common.SAMLObjectBuilder<org.opensaml.saml.saml2.core.AuthnStatement> |
authnStatementBuilder
Builder of AuthnStatements.
|
private org.opensaml.security.credential.BasicCredential |
goodCredential
Credential used for signing.
|
private RandomIdentifierGenerationStrategy |
idGenerator
Generator of element IDs.
|
private org.opensaml.saml.common.SAMLObjectBuilder<org.opensaml.saml.saml2.core.Issuer> |
issuerBuilder
Builder of Issuers.
|
private org.slf4j.Logger |
log
Class logger.
|
private org.opensaml.core.xml.XMLObjectBuilder<org.opensaml.xmlsec.signature.Signature> |
signatureBuilder
Builder of Signatures.
|
| 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, unmarshallElement, unmarshallElementprivate final org.slf4j.Logger log
private org.opensaml.security.credential.BasicCredential goodCredential
private org.opensaml.saml.common.SAMLObjectBuilder<org.opensaml.saml.saml2.core.Assertion> assertionBuilder
private org.opensaml.saml.common.SAMLObjectBuilder<org.opensaml.saml.saml2.core.Issuer> issuerBuilder
private org.opensaml.saml.common.SAMLObjectBuilder<org.opensaml.saml.saml2.core.AuthnStatement> authnStatementBuilder
private org.opensaml.core.xml.XMLObjectBuilder<org.opensaml.xmlsec.signature.Signature> signatureBuilder
private 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–2019 Shibboleth Consortium. All rights reserved.