Top Description Fields Constructors Methods
org.eclipse.jgit.internal.transport.sshd

public Class AuthenticationLogger

extends Object
Class Inheritance
Static Imports
org.eclipse.jgit.internal.transport.sshd.CachingKeyPairProvider.getKeyId

Provides a log of authentication attempts for a ClientSession.

Field Summary

Modifier and TypeField and Description
private final GssApiWithMicAuthenticationReporter
private final List<String>
private final PasswordAuthenticationReporter
private final PublicKeyAuthenticationReporter

Constructor Summary

AccessConstructor and Description
public
AuthenticationLogger(ClientSession
to configure
session
)

Creates a new AuthenticationLogger and configures the ClientSession to report authentication attempts through this instance.

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Drops all previously recorded log messages.

public List<String>

Returns:

the messages as an unmodifiable list
getLog
()

Retrieves the log messages for the authentication attempts.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

gssLoggerback to summary
private final GssApiWithMicAuthenticationReporter gssLogger
messagesback to summary
private final List<String> messages
passwordLoggerback to summary
private final PasswordAuthenticationReporter passwordLogger
pubkeyLoggerback to summary
private final PublicKeyAuthenticationReporter pubkeyLogger

Constructor Detail

AuthenticationLoggerback to summary
public AuthenticationLogger(ClientSession session)

Creates a new AuthenticationLogger and configures the ClientSession to report authentication attempts through this instance.

Parameters
session:ClientSession

to configure

Method Detail

clearback to summary
public void clear()

Drops all previously recorded log messages.

getLogback to summary
public List<String> getLog()

Retrieves the log messages for the authentication attempts.

Returns:List<String>

the messages as an unmodifiable list