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

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


    static void launchServices(OperationContext context, PathAddress pathAddress, ModelNode model, ServiceVerificationHandler verificationHandler, List<ServiceController<?>> newControllers) throws OperationFailedException {
        String federationAlias = pathAddress.subAddress(0, pathAddress.size() - 2).getLastElement().getValue();
        String keyName = pathAddress.getLastElement().getValue();
        String host = KeyResourceDefinition.HOST.resolveModelAttribute(context, model).asString();
        KeyService service = new KeyService(keyName, host);
        ServiceBuilder<KeyService> serviceBuilder = context.getServiceTarget().addService(KeyService.createServiceName(federationAlias, keyName), service);

        serviceBuilder.addDependency(KeyStoreProviderService.createServiceName(federationAlias), KeyStoreProviderService.class, service.getKeyStoreProviderService());

        if (verificationHandler != null) {
            serviceBuilder.addListener(verificationHandler);
        }
View Full Code Here

TOP

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

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.