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));
}
Aggregations