Search in sources :

Example 1 with SAML2Handler

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);
}
Also used : SAML2Handler(org.picketlink.identity.federation.core.saml.v2.interfaces.SAML2Handler) RolesGenerationHandler(org.picketlink.identity.federation.web.handlers.saml2.RolesGenerationHandler) Handler(org.picketlink.config.federation.handler.Handler) SAML2SignatureValidationHandler(org.picketlink.identity.federation.web.handlers.saml2.SAML2SignatureValidationHandler) SAML2LogOutHandler(org.picketlink.identity.federation.web.handlers.saml2.SAML2LogOutHandler) SAML2AuthenticationHandler(org.picketlink.identity.federation.web.handlers.saml2.SAML2AuthenticationHandler) SAML2EncryptionHandler(org.picketlink.identity.federation.web.handlers.saml2.SAML2EncryptionHandler)

Example 2 with SAML2Handler

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);
}
Also used : Handlers(org.picketlink.config.federation.handler.Handlers) SAML2Handler(org.picketlink.identity.federation.core.saml.v2.interfaces.SAML2Handler) RolesGenerationHandler(org.picketlink.identity.federation.web.handlers.saml2.RolesGenerationHandler) Handler(org.picketlink.config.federation.handler.Handler) SAML2SignatureValidationHandler(org.picketlink.identity.federation.web.handlers.saml2.SAML2SignatureValidationHandler) SAML2LogOutHandler(org.picketlink.identity.federation.web.handlers.saml2.SAML2LogOutHandler) SAML2AuthenticationHandler(org.picketlink.identity.federation.web.handlers.saml2.SAML2AuthenticationHandler) SAML2EncryptionHandler(org.picketlink.identity.federation.web.handlers.saml2.SAML2EncryptionHandler)

Aggregations

Handler (org.picketlink.config.federation.handler.Handler)2 SAML2Handler (org.picketlink.identity.federation.core.saml.v2.interfaces.SAML2Handler)2 RolesGenerationHandler (org.picketlink.identity.federation.web.handlers.saml2.RolesGenerationHandler)2 SAML2AuthenticationHandler (org.picketlink.identity.federation.web.handlers.saml2.SAML2AuthenticationHandler)2 SAML2EncryptionHandler (org.picketlink.identity.federation.web.handlers.saml2.SAML2EncryptionHandler)2 SAML2LogOutHandler (org.picketlink.identity.federation.web.handlers.saml2.SAML2LogOutHandler)2 SAML2SignatureValidationHandler (org.picketlink.identity.federation.web.handlers.saml2.SAML2SignatureValidationHandler)2 Handlers (org.picketlink.config.federation.handler.Handlers)1