Class SignedAssertionTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.saml2.core.tests.SignedAssertionTest
-
public class SignedAssertionTest extends XMLObjectBaseTestCase
-
-
Field Summary
Fields Modifier and Type Field Description private SAMLObjectBuilder<Assertion>assertionBuilderBuilder of Assertions.private SAMLObjectBuilder<AuthnStatement>authnStatementBuilderBuilder of AuthnStatements.private BasicCredentialgoodCredentialCredential used for signing.private RandomIdentifierGenerationStrategyidGeneratorGenerator of element IDs.private SAMLObjectBuilder<Issuer>issuerBuilderBuilder of Issuers.private org.slf4j.LoggerlogClass logger.private XMLObjectBuilder<Signature>signatureBuilderBuilder of Signatures.-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description SignedAssertionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestAssertionSignature()Creates a simple Assertion, signs it and then verifies the signature.-
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
-
log
private final org.slf4j.Logger log
Class logger.
-
goodCredential
private BasicCredential goodCredential
Credential used for signing.
-
assertionBuilder
private SAMLObjectBuilder<Assertion> assertionBuilder
Builder of Assertions.
-
issuerBuilder
private SAMLObjectBuilder<Issuer> issuerBuilder
Builder of Issuers.
-
authnStatementBuilder
private SAMLObjectBuilder<AuthnStatement> authnStatementBuilder
Builder of AuthnStatements.
-
signatureBuilder
private XMLObjectBuilder<Signature> signatureBuilder
Builder of Signatures.
-
idGenerator
private RandomIdentifierGenerationStrategy idGenerator
Generator of element IDs.
-
-
Method Detail
-
testAssertionSignature
public void testAssertionSignature() throws MarshallingException, SignatureException, UnmarshallingException, SecurityExceptionCreates a simple Assertion, signs it and then verifies the signature.- Throws:
MarshallingException- thrown if the Assertion can not be marshalled into a DOMSignatureException- ...UnmarshallingException- ...SecurityException- ...
-
-