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,java.lang.String>
-
- org.eclipse.jgit.internal.transport.sshd.proxy.HttpClientConnector.HttpBasicAuthentication
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,AuthenticationHandler<AuthenticationChallenge,java.lang.String>,HttpClientConnector.HttpAuthenticationHandler
- Enclosing class:
- HttpClientConnector
private class HttpClientConnector.HttpBasicAuthentication extends BasicAuthentication<AuthenticationChallenge,java.lang.String> implements HttpClientConnector.HttpAuthenticationHandler
- See Also:
- RFC 7617
-
-
Field Summary
Fields Modifier and Type Field Description private booleanasked-
Fields 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 Constructor Description HttpBasicAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaskCredentials()Asks for credentials via the globalAuthenticator.java.lang.StringgetName()java.lang.StringgetToken()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
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceHttpClientConnector.HttpAuthenticationHandler
-
askCredentials
protected void askCredentials()
Description copied from class:BasicAuthenticationAsks for credentials via the globalAuthenticator.- Overrides:
askCredentialsin classBasicAuthentication<AuthenticationChallenge,java.lang.String>
-
getToken
public java.lang.String getToken() throws java.lang.ExceptionDescription copied from interface:AuthenticationHandlerRetrieves the last token generated.- Specified by:
getTokenin interfaceAuthenticationHandler<AuthenticationChallenge,java.lang.String>- Returns:
- the token, or
nullif there is none - Throws:
java.lang.Exception- if an error occurs
-
-