/* * [PosterAuthenticator.java] * * Summary: Provides userid/password as needed to access AllPosters.com. * * Copyright: (c) 2008-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 1.1 2008-08-31 screen scrape sizes and prices. */ package com.mindprod.poster; import java.net.Authenticator; import java.net.PasswordAuthentication; /** * Provides userid/password as needed to access AllPosters.com. * * @author Roedy Green, Canadian Mind Products * @version 1.1 2008-08-31 screen scrape sizes and prices. * @since 2008 */ class PosterAuthenticator extends Authenticator { /** * Called when password authorization is needed. Subclasses should override the default implementation, which * returns null. * * @return The PasswordAuthentication collected from the user, or null if none is provided. */ protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication( "roedyg@mindbprod.com", "extras".toCharArray() ); } }