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 boolean
asked
-
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 void
askCredentials()
Asks for credentials via the globalAuthenticator
.java.lang.String
getName()
java.lang.String
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
-
-
-
-
Method Detail
-
getName
public java.lang.String 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,java.lang.String>
-
getToken
public java.lang.String getToken() throws java.lang.Exception
Description copied from interface:AuthenticationHandler
Retrieves the last token generated.- Specified by:
getToken
in interfaceAuthenticationHandler<AuthenticationChallenge,java.lang.String>
- Returns:
- the token, or
null
if there is none - Throws:
java.lang.Exception
- if an error occurs
-
-