Top Description Constructors Methods
com.github.javakeyring.internal

public Class KeyringBackendFactory

extends Object
Class Inheritance
Imports
java.lang.reflect.InvocationTargetException, com.github.javakeyring.BackendNotSupportedException, .KeyringStorageType

Factory of KeyringBackend.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static KeyringBackend

Returns:

the KeyringBackend.
create
()

Creates an instance of KeyringBackend.

public static KeyringBackend

Returns:

Creates an instance of KeyringBackend.
create
(KeyringStorageType
Preferred backend name
preferred
)

Creates an instance of KeyringBackend.

private static KeyringBackend
tryToCreateBackend(KeyringStorageType keyring, boolean throwing)

Try to create keyring backend instance from Class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

KeyringBackendFactoryback to summary
public KeyringBackendFactory()

Method Detail

createback to summary
public static KeyringBackend create() throws BackendNotSupportedException

Creates an instance of KeyringBackend.

Returns:KeyringBackend

the KeyringBackend.

Exceptions
BackendNotSupportedException:
if no KeyringBackend supports this system.
createback to summary
public static KeyringBackend create(KeyringStorageType preferred) throws BackendNotSupportedException

Creates an instance of KeyringBackend.

Parameters
preferred:KeyringStorageType

Preferred backend name

Returns:KeyringBackend

Creates an instance of KeyringBackend.

Exceptions
BackendNotSupportedException:
should the preferred KeyringStorageType not support this system.
tryToCreateBackendback to summary
private static KeyringBackend tryToCreateBackend(KeyringStorageType keyring, boolean throwing) throws BackendNotSupportedException

Try to create keyring backend instance from Class.