Search in sources :

Example 1 with DefaultConditionsProvider

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);
}
Also used : SAML2Config(org.forgerock.openam.sts.config.user.SAML2Config) DefaultConditionsProvider(org.forgerock.openam.sts.tokengeneration.saml2.statements.DefaultConditionsProvider) Test(org.testng.annotations.Test)

Aggregations

SAML2Config (org.forgerock.openam.sts.config.user.SAML2Config)1 DefaultConditionsProvider (org.forgerock.openam.sts.tokengeneration.saml2.statements.DefaultConditionsProvider)1 Test (org.testng.annotations.Test)1