Package com.github.javakeyring.internal
Class KeyringBackendFactory
java.lang.Object
com.github.javakeyring.internal.KeyringBackendFactory
Factory of KeyringBackend.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyringBackendcreate()Creates an instance of KeyringBackend.static KeyringBackendcreate(KeyringStorageType preferred) Creates an instance of KeyringBackend.
-
Constructor Details
-
KeyringBackendFactory
public KeyringBackendFactory()
-
-
Method Details
-
create
Creates an instance of KeyringBackend.- Returns:
- the KeyringBackend.
- Throws:
BackendNotSupportedException- if noKeyringBackendsupports this system.
-
create
public static KeyringBackend create(KeyringStorageType preferred) throws BackendNotSupportedException Creates an instance of KeyringBackend.- Parameters:
preferred- Preferred backend name- Returns:
- Creates an instance of KeyringBackend.
- Throws:
BackendNotSupportedException- should the preferredKeyringStorageTypenot support this system.
-