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

public final Class KeyPasswordProviderFactory

extends Object
Class Inheritance
Imports
java.util.concurrent.atomic.AtomicReference, java.util.function.Function, org.eclipse.jgit.annotations.NonNull, org.eclipse.jgit.transport.CredentialsProvider

Maintains a static singleton instance of a factory to create a KeyPasswordProvider from a CredentialsProvider.
Since
7.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private static final KeyPasswordProviderFactory.KeyPasswordProviderCreator
private static AtomicReference<KeyPasswordProviderFactory.KeyPasswordProviderCreator>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static KeyPasswordProviderFactory.KeyPasswordProviderCreator
getInstance()

Retrieves the currently set KeyPasswordProviderCreator.

public static KeyPasswordProviderFactory.KeyPasswordProviderCreator

Returns:

the previously set KeyPasswordProviderCreator
setInstance
(KeyPasswordProviderFactory.KeyPasswordProviderCreator
to set; if null, sets a default provider.
provider
)

Sets a new KeyPasswordProviderCreator.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULTback to summary
private static final KeyPasswordProviderFactory.KeyPasswordProviderCreator DEFAULT
INSTANCEback to summary
private static AtomicReference<KeyPasswordProviderFactory.KeyPasswordProviderCreator> INSTANCE

Constructor Detail

KeyPasswordProviderFactoryback to summary
private KeyPasswordProviderFactory()

Method Detail

getInstanceback to summary
public static KeyPasswordProviderFactory.KeyPasswordProviderCreator getInstance()

Retrieves the currently set KeyPasswordProviderCreator.

Returns:KeyPasswordProviderFactory.KeyPasswordProviderCreator

the KeyPasswordProviderCreator

Annotations
@NonNull
setInstanceback to summary
public static KeyPasswordProviderFactory.KeyPasswordProviderCreator setInstance(KeyPasswordProviderFactory.KeyPasswordProviderCreator provider)

Sets a new KeyPasswordProviderCreator.

Parameters
provider:KeyPasswordProviderFactory.KeyPasswordProviderCreator

to set; if null, sets a default provider.

Returns:KeyPasswordProviderFactory.KeyPasswordProviderCreator

the previously set KeyPasswordProviderCreator

Annotations
@NonNull
org.eclipse.jgit.transport.sshd back to summary

public Interface KeyPasswordProviderFactory.KeyPasswordProviderCreator

extends Function<CredentialsProvider, KeyPasswordProvider>
Annotations
@FunctionalInterface

Creates a KeyPasswordProvider from a CredentialsProvider.

Method Summary

Inherited from java.util.function.Function:
andThenapplycomposeidentity