Top Description Fields Constructors Methods
org.eclipse.jgit.console

public Class ConsoleAuthenticator

extends CachedAuthenticator
Class Inheritance
Imports
java.io.Console, java.net.Authenticator, .PasswordAuthentication, java.text.MessageFormat, org.eclipse.jgit.pgm.internal.CLIText, org.eclipse.jgit.util.CachedAuthenticator

Basic network prompt for username/password when using the console.
Since
4.0

Field Summary

Modifier and TypeField and Description
private final Console

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private String
public static void
install()

Install this authenticator implementation into the JVM.

protected PasswordAuthentication
promptPasswordAuthentication()

Implements abstract org.eclipse.jgit.util.CachedAuthenticator.promptPasswordAuthentication.

Prompt for and request authentication from the end-user.

Inherited from org.eclipse.jgit.util.CachedAuthenticator:
addgetPasswordAuthentication

Field Detail

consback to summary
private final Console cons

Constructor Detail

ConsoleAuthenticatorback to summary
public ConsoleAuthenticator()

Method Detail

formatRealmback to summary
private String formatRealm()
installback to summary
public static void install()

Install this authenticator implementation into the JVM.

promptPasswordAuthenticationback to summary
protected PasswordAuthentication promptPasswordAuthentication()

Implements abstract org.eclipse.jgit.util.CachedAuthenticator.promptPasswordAuthentication.

Doc from org.eclipse.jgit.util.CachedAuthenticator.promptPasswordAuthentication.

Prompt for and request authentication from the end-user.

Returns:PasswordAuthentication

the authentication data; null if the user canceled the request and does not want to continue.

Annotations
@Override