All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.javaswift.joss.command.impl.identity.ExternalAuthenticationCommandImpl Maven / Gradle / Ivy

There is a newer version: 0.10.4
Show newest version
package org.javaswift.joss.command.impl.identity;

import org.apache.http.client.HttpClient;
import org.javaswift.joss.client.factory.AuthenticationMethod;
import org.javaswift.joss.model.Access;

public class ExternalAuthenticationCommandImpl extends AbstractSimpleAuthenticationCommandImpl {

	private final AuthenticationMethod.AccessProvider accessProvier ;
	
    public ExternalAuthenticationCommandImpl(HttpClient httpClient, String url, AuthenticationMethod.AccessProvider accessProvier) {
        super(httpClient, url);
        if (accessProvier == null)
        	throw new NullPointerException () ;
        this.accessProvier = accessProvier ;
    }
    
    @Override
    public Access call() {
    	return accessProvier.authenticate() ;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy