use of org.picketlink.identity.federation.core.saml.v2.interfaces.SAML2Handler in project wildfly by wildfly.
the class EntityProviderService method addHandler.
void addHandler(Class<? extends SAML2Handler> handlerClassName, Handlers handlers) {
for (Handler handler : handlers.getHandler()) {
if (handler.getClazz().equals(handlerClassName.getName())) {
return;
}
}
Handler handler = new Handler();
handler.setClazz(handlerClassName.getName());
handlers.add(handler);
}
use of org.picketlink.identity.federation.core.saml.v2.interfaces.SAML2Handler in project wildfly by wildfly.
the class EntityProviderService method configureHandlers.
/**
* <p> Configure the SAML Handlers. </p>
*/
private void configureHandlers() {
Handlers actualHandlers = new Handlers();
actualHandlers.setHandlers(new ArrayList<Handler>());
if (this.handlers.isEmpty()) {
for (Class<? extends SAML2Handler> commonHandlerClass : getDefaultHandlers()) {
addHandler(commonHandlerClass, actualHandlers);
}
} else {
for (Handler handler : this.handlers) {
actualHandlers.add(handler);
}
}
getPicketLinkType().setHandlers(actualHandlers);
}
Aggregations