Class SAML2ActionTestingSupport
- java.lang.Object
-
- org.opensaml.saml.saml2.testing.SAML2ActionTestingSupport
-
- net.shibboleth.idp.saml.saml2.profile.SAML2ActionTestingSupport
-
public final class SAML2ActionTestingSupport extends org.opensaml.saml.saml2.testing.SAML2ActionTestingSupportHelper methods for creating/testing SAML 2 objects within profile action tests. When methods herein refer to mock objects they are always objects that have been created via Mockito unless otherwise noted.
-
-
Constructor Summary
Constructors Constructor Description SAML2ActionTestingSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection<ProfileConfiguration>buildProfileConfigurations()Builds aProfileConfigurationcollection containing aArtifactResolutionProfileConfiguration,AttributeQueryProfileConfiguration, andArtifactResolutionProfileConfiguration.static RelyingPartyContextbuildRelyingPartySubcontext(BaseContext parent, String relyingPartyId)Builds aRelyingPartyContextthat is a child of the given parent context.-
Methods inherited from class org.opensaml.saml.saml2.testing.SAML2ActionTestingSupport
buildArtifactResolve, buildArtifactResponse, buildAssertion, buildAttributeQueryRequest, buildAttributeStatement, buildAuthnRequest, buildAuthnStatement, buildIssuer, buildLogoutRequest, buildLogoutResponse, buildNameID, buildResponse, buildScoping, buildSubject
-
-
-
-
Method Detail
-
buildRelyingPartySubcontext
public static RelyingPartyContext buildRelyingPartySubcontext(@Nonnull BaseContext parent, @Nullable String relyingPartyId) throws ComponentInitializationException
Builds aRelyingPartyContextthat is a child of the given parent context. The build subcontext contains:- a
RelyingPartyConfigurationwhose ID is the given relying party ID orActionTestingSupport.INBOUND_MSG_ISSUERif none is given - the set of
ProfileConfigurationcreated bybuildProfileConfigurations() - the
BrowserSSOProfileConfigurationset as the active profile configuration
- Parameters:
parent- the parent of the created subcontextrelyingPartyId- the ID of the relying party- Returns:
- the constructed subcontext
- Throws:
ComponentInitializationException- ...
- a
-
buildProfileConfigurations
public static Collection<ProfileConfiguration> buildProfileConfigurations()
Builds aProfileConfigurationcollection containing aArtifactResolutionProfileConfiguration,AttributeQueryProfileConfiguration, andArtifactResolutionProfileConfiguration.- Returns:
- the constructed
ProfileConfiguration
-
-