Package org.wildfly.extension.picketlink.federation.service

Examples of org.wildfly.extension.picketlink.federation.service.IdentityProviderService


        launchServices(context, identityProviderNode, verificationHandler, newControllers, pathAddress);
    }

    static void launchServices(OperationContext context, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers, PathAddress pathAddress) throws OperationFailedException {
        String alias = pathAddress.getLastElement().getValue();
        IdentityProviderService service = new IdentityProviderService(toIDPConfig(context, model, alias));
        ServiceBuilder<IdentityProviderService> serviceBuilder = context.getServiceTarget().addService(IdentityProviderService.createServiceName(alias), service);
        String federationAlias = pathAddress.subAddress(0, pathAddress.size() - 1).getLastElement().getValue();

        serviceBuilder.addDependency(FederationService.createServiceName(federationAlias), FederationService.class,
                                            service.getFederationService());

        IDPConfiguration configuration = service.getConfiguration();

        if (!configuration.isExternal()) {
            serviceBuilder.addDependency(SecurityDomainService.SERVICE_NAME.append(configuration.getSecurityDomain()));
        }
View Full Code Here


                .createServiceName(deployment.getName()));

        if (service == null) {
            service = serviceRegistry.getService(ServiceProviderService.createServiceName(deployment.getName()));
        } else {
            IdentityProviderService identityProviderService = (IdentityProviderService) service.getService();
            IDPConfiguration idpType = identityProviderService.getValue().getConfiguration();

            if (idpType.isExternal()) {
                return null;
            }
        }
View Full Code Here

TOP

Related Classes of org.wildfly.extension.picketlink.federation.service.IdentityProviderService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.