use of org.forgerock.openam.sts.tokengeneration.saml2.statements.DefaultConditionsProvider in project OpenAM by OpenRock.
the class StatementProviderImplTest method testCustomProvider.
@Test
public void testCustomProvider() throws TokenCreationException {
SAML2Config config = SAML2Config.builder().customConditionsProviderClassName("org.forgerock.openam.sts.tokengeneration.saml2.statements.DefaultConditionsProvider").spEntityId("http://host.com/sp/entity/id").idpId("da_idp").build();
StatementProvider statementProvider = Guice.createInjector(new MyModule()).getInstance(StatementProvider.class);
assertTrue(statementProvider.getConditionsProvider(config) instanceof DefaultConditionsProvider);
}
Aggregations