| Modifier and Type | Field and Description |
|---|---|
| private final KeyringBackend | backend
Keyring Storage Back end. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static Keyring | Returns: a functional Keyring or a BackendNotSupportedException is thrown.Creates an instance of Keyring using the a default backed based on operating system. |
| public static Keyring | Returns: a functional Keyring or a BackendNotSupportedException is thrown.desired backend. keyring)Creates an instance of Keyring with specified backend. |
| public void | deletePassword(String
Service name service, String Account name account)Sets password to key store (Proxy method of KeyringBackend.setPassword) |
| public KeyringStorageType | |
| public String | Returns: Password related to specified service and accountService name service, String Account name account)Gets password from key store (Proxy method of KeyringBackend.getPassword). |
| public void | setPassword(String
Service name service, String Account name account, String Password password)Sets password to key store (Proxy method of KeyringBackend.setPassword) |
| backend | back to summary |
|---|---|
| private final KeyringBackend backend Keyring Storage Back end. | |
| Keyring | back to summary |
|---|---|
| private Keyring(KeyringBackend backend) Initializes an instance of Keyring.
| |
| close | back to summary |
|---|---|
| public void close() throws Exception Implements java. Closes resources used by the backend. | |
| create | back to summary |
|---|---|
| public static Keyring create() throws BackendNotSupportedException Creates an instance of Keyring using the a default backed based on operating system.
| |
| create | back to summary |
|---|---|
| public static Keyring create(KeyringStorageType keyring) throws BackendNotSupportedException Creates an instance of Keyring with specified backend.
| |
| deletePassword | back to summary |
|---|---|
| public void deletePassword(String service, String account) throws PasswordAccessException Sets password to key store (Proxy method of KeyringBackend.setPassword)
| |
| getKeyringStorageType | back to summary |
|---|---|
| public KeyringStorageType getKeyringStorageType() | |
| getPassword | back to summary |
|---|---|
| public String getPassword(String service, String account) throws PasswordAccessException Gets password from key store (Proxy method of KeyringBackend.getPassword).
| |
| setPassword | back to summary |
|---|---|
| public void setPassword(String service, String account, String password) throws PasswordAccessException Sets password to key store (Proxy method of KeyringBackend.setPassword)
| |