org.eclipse.jgit.util
Class CachedAuthenticator
java.lang.Object
java.net.Authenticator
org.eclipse.jgit.util.CachedAuthenticator
public abstract class CachedAuthenticator
- extends Authenticator
Abstract authenticator which remembers prior authentications.
Methods inherited from class java.net.Authenticator |
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachedAuthenticator
public CachedAuthenticator()
add
public static void add(CachedAuthenticator.CachedAuthentication ca)
- Add a cached authentication for future use.
- Parameters:
ca
- the information we should remember.
getPasswordAuthentication
protected final PasswordAuthentication getPasswordAuthentication()
- Overrides:
getPasswordAuthentication
in class Authenticator
promptPasswordAuthentication
protected abstract PasswordAuthentication promptPasswordAuthentication()
- Prompt for and request authentication from the end-user.
- Returns:
- the authentication data; null if the user canceled the request
and does not want to continue.
Copyright © 2012. All Rights Reserved.