
ee.sk.digidoc.factory.HttpAuthenticator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdigidoc Show documentation
Show all versions of jdigidoc Show documentation
A Java libray for manipulating Estonian digital signature container files DDOC and BDOC. Note that this library is deprecated. It is recommended to use the new DigiDoc4j library at https://github.com/open-eid/digidoc4j
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 - 2025 Weber Informatics LLC | Privacy Policy