Package org.picketlink.identity.federation.core.wstrust.STSClientConfig

Examples of org.picketlink.identity.federation.core.wstrust.STSClientConfig.Builder.serviceName()


    final String username = "admin";
    final String password = "admin";

    public void testBuild() {
        final Builder builder = new STSClientConfig.Builder();
        final STSClientConfig config = builder.serviceName(serviceName).portName(portName).endpointAddress(endpointAddress)
                .username(username).password(password).build();
        assertAllProperties(config);
    }

    public void testBuildFromConfigPropertiesFile() {
View Full Code Here


            throw logger.nullArgumentError("At least one endpoint URI must be provided");

        // create an STSClient for each endpointURI.
        this.clients = new STSClient[endpointURIs.length];
        Builder builder = new STSClientConfig.Builder();
        builder.serviceName(serviceName).portName(port).username(secInfo.username).password(secInfo.passwd);

        int index = 0;
        for (String endpointURI : endpointURIs) {
            builder.endpointAddress(endpointURI);
            this.clients[index++] = STSClientFactory.getInstance().create(builder.build());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.