Class HttpClientConnector.HttpBasicAuthentication
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler<ParameterType,TokenType>
org.eclipse.jgit.internal.transport.sshd.auth.BasicAuthentication<AuthenticationChallenge,String>
org.eclipse.jgit.internal.transport.sshd.proxy.HttpClientConnector.HttpBasicAuthentication
- All Implemented Interfaces:
Closeable,AutoCloseable,AuthenticationHandler<AuthenticationChallenge,,String> HttpClientConnector.HttpAuthenticationHandler
- Enclosing class:
- HttpClientConnector
private class HttpClientConnector.HttpBasicAuthentication
extends BasicAuthentication<AuthenticationChallenge,String>
implements HttpClientConnector.HttpAuthenticationHandler
- See Also:
-
Field Summary
FieldsFields inherited from class org.eclipse.jgit.internal.transport.sshd.auth.BasicAuthentication
password, userFields inherited from class org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler
done, params, proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAsks for credentials via the globalAuthenticator.getName()getToken()Retrieves the last token generated.Methods inherited from class org.eclipse.jgit.internal.transport.sshd.auth.BasicAuthentication
clearPassword, close, process, startMethods inherited from class org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler
isDone, setParams
-
Field Details
-
asked
private boolean asked
-
-
Constructor Details
-
HttpBasicAuthentication
public HttpBasicAuthentication()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceHttpClientConnector.HttpAuthenticationHandler
-
askCredentials
protected void askCredentials()Description copied from class:BasicAuthenticationAsks for credentials via the globalAuthenticator.- Overrides:
askCredentialsin classBasicAuthentication<AuthenticationChallenge,String>
-
getToken
Description copied from interface:AuthenticationHandlerRetrieves the last token generated.- Specified by:
getTokenin interfaceAuthenticationHandler<AuthenticationChallenge,String> - Returns:
- the token, or
nullif there is none - Throws:
Exception- if an error occurs
-