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

ee.sk.digidoc.factory.HttpAuthenticator Maven / Gradle / Ivy

package ee.sk.digidoc.factory;
import java.net.Authenticator;
import java.net.PasswordAuthentication;

/**
 * HTTP authenticator class for ocsp requests
 * @author Veiko Sinivee
 */
public class HttpAuthenticator extends Authenticator
{
	private String m_username, m_passwd;
	
	public HttpAuthenticator(String username, String passwd)
	{
		m_username = username;
		m_passwd = passwd;
	}
	
	public PasswordAuthentication getPasswordAuthentication () {
        return new PasswordAuthentication (m_username, m_passwd.toCharArray());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy