Package com.github.javakeyring.internal
Class KeyringBackendFactory
- java.lang.Object
-
- com.github.javakeyring.internal.KeyringBackendFactory
-
public class KeyringBackendFactory extends Object
Factory of KeyringBackend.
-
-
Constructor Summary
Constructors Constructor Description KeyringBackendFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyringBackendcreate()Creates an instance of KeyringBackend.static KeyringBackendcreate(KeyringStorageType preferred)Creates an instance of KeyringBackend.
-
-
-
Method Detail
-
create
public static KeyringBackend create() throws BackendNotSupportedException
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.
-
-