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, user
Fields inherited from class org.eclipse.jgit.internal.transport.sshd.auth.AbstractAuthenticationHandler
done, params, proxy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Asks 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, start
Methods 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:
getName
in interfaceHttpClientConnector.HttpAuthenticationHandler
-
askCredentials
protected void askCredentials()Description copied from class:BasicAuthentication
Asks for credentials via the globalAuthenticator
.- Overrides:
askCredentials
in classBasicAuthentication<AuthenticationChallenge,
String>
-
getToken
Description copied from interface:AuthenticationHandler
Retrieves the last token generated.- Specified by:
getToken
in interfaceAuthenticationHandler<AuthenticationChallenge,
String> - Returns:
- the token, or
null
if there is none - Throws:
Exception
- if an error occurs
-