Search in sources :

Example 1 with OpenAMSessionTokenClientAssertionBuilder

use of org.forgerock.openam.sts.soap.policy.am.OpenAMSessionTokenClientAssertionBuilder in project OpenAM by OpenRock.

the class SoapSTSConsumer method addAMSessionTokenSupport.

/**
     * This method registers the AMSessionToken AssertionBuilder and InterceptorProvider required to consume a sts instance
     * protected by a SecurityPolicy binding specifying OpenAMToken Assertions.
     */
private void addAMSessionTokenSupport() {
    PolicyInterceptorProviderRegistry pipr = bus.getExtension(PolicyInterceptorProviderRegistry.class);
    pipr.register(new OpenAMSessionTokenClientInterceptorProvider());
    AssertionBuilderRegistry abr = bus.getExtension(AssertionBuilderRegistry.class);
    abr.setIgnoreUnknownAssertions(false);
    abr.registerBuilder(AMSTSConstants.AM_SESSION_TOKEN_ASSERTION_QNAME, new OpenAMSessionTokenClientAssertionBuilder(callbackHander));
}
Also used : AssertionBuilderRegistry(org.apache.cxf.ws.policy.AssertionBuilderRegistry) PolicyInterceptorProviderRegistry(org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry) OpenAMSessionTokenClientInterceptorProvider(org.forgerock.openam.sts.soap.policy.am.OpenAMSessionTokenClientInterceptorProvider) OpenAMSessionTokenClientAssertionBuilder(org.forgerock.openam.sts.soap.policy.am.OpenAMSessionTokenClientAssertionBuilder)

Aggregations

AssertionBuilderRegistry (org.apache.cxf.ws.policy.AssertionBuilderRegistry)1 PolicyInterceptorProviderRegistry (org.apache.cxf.ws.policy.PolicyInterceptorProviderRegistry)1 OpenAMSessionTokenClientAssertionBuilder (org.forgerock.openam.sts.soap.policy.am.OpenAMSessionTokenClientAssertionBuilder)1 OpenAMSessionTokenClientInterceptorProvider (org.forgerock.openam.sts.soap.policy.am.OpenAMSessionTokenClientInterceptorProvider)1