| Modifier and Type | Field and Description |
|---|---|
| private static OSXKeychain | instance
The singleton instance of the keychain. |
| private static final Map | PROTOCOLS
A fixed mapping of ports to known protocols. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private native void | _addGenericPassword(String
The value which should be passed as the
serviceName parameter to
SecKeychainAddGenericPassword. serviceName, String The value which should be passed as the
accountName parameter to
SecKeychainAddGenericPassword. accountName, String The value which should be passed as the
password parameter to
SecKeychainAddGenericPassword. password)See Java_pt_davidafsilva_ghn_service_options_osx_OSXKeychain__1addGenericPassword for
the implementation of this and use |
| private native void | _deleteGenericPassword(String
The value which should be passed as the
serviceName parameter to
SecKeychainFindGenericPassword in order
to find the password to delete it. serviceName, String The value for the accountName parameter
to SecKeychainFindGenericPassword in
order to find the password to delete it. accountName)See Java_pt_davidafsilva_ghn_service_options_osx_OSXKeychain__1deleteGenericPassword for
the implementation of this and use |
| private native String | Returns: The first password which matches the details supplied.The value which should be passed as the
serviceName parameter to
SecKeychainFindGenericPassword. serviceName, String The value for the accountName parameter
to SecKeychainFindGenericPassword. accountName)See Java_pt_davidafsilva_ghn_service_options_osx_OSXKeychain__1findGenericPassword for
the implementation of this and use |
| private native void | _modifyGenericPassword(String
The value which should be passed as the
serviceName parameter to
SecKeychainAddGenericPassword. serviceName, String The value which should be passed as the
accountName parameter to
SecKeychainAddGenericPassword. accountName, String The value which should be passed as the
password parameter to
SecKeychainAddGenericPassword. password)See Java_pt_davidafsilva_ghn_service_options_osx_OSXKeychain__1modifyGenericPassword for
the implementation of this and use |
| public void | addGenericPassword(String
The name of the service the password is
for. serviceName, String The account name/username for the
service. accountName, String The password for the service. password)Add a non-internet password to the keychain. |
| public void | deleteGenericPassword(String
The name of the service the password is
for. serviceName, String The account name/username for the
service. accountName)Delete a generic password from the keychain. |
| public Optional | Returns: the password for the service or an empty optionalThe name of the service the password is
for. serviceName, String The account name/username for the
service. accountName)Finds an existing non-internet password in the keychain |
| public static OSXKeychain | |
| private static void | loadSharedObject()
Load the shared object which contains the implementations for the native methods in this class. |
| public void | modifyGenericPassword(String
The name of the service the password is
for. serviceName, String The account name/username for the
service. accountName, String The password for the service. password)Update an existing non-internet password to the keychain. |
| instance | back to summary |
|---|---|
| private static OSXKeychain instance The singleton instance of the keychain. Lazily loaded in
| |
| PROTOCOLS | back to summary |
|---|---|
| private static final Map<Integer, OSXKeychainProtocolType> PROTOCOLS A fixed mapping of ports to known protocols. | |
| OSXKeychain | back to summary |
|---|---|
| private OSXKeychain() Prevent this class from being instantiated directly. | |
| _addGenericPassword | back to summary |
|---|---|
| private native void _addGenericPassword(String serviceName, String accountName, String password) throws OSXKeychainException See Java_pt_davidafsilva_ghn_service_options_osx_OSXKeychain__1addGenericPassword for
the implementation of this and use
| |
| _deleteGenericPassword | back to summary |
|---|---|
| private native void _deleteGenericPassword(String serviceName, String accountName) throws OSXKeychainException See Java_pt_davidafsilva_ghn_service_options_osx_OSXKeychain__1deleteGenericPassword for
the implementation of this and use
| |
| _findGenericPassword | back to summary |
|---|---|
| private native String _findGenericPassword(String serviceName, String accountName) throws OSXKeychainException See Java_pt_davidafsilva_ghn_service_options_osx_OSXKeychain__1findGenericPassword for
the implementation of this and use
| |
| _modifyGenericPassword | back to summary |
|---|---|
| private native void _modifyGenericPassword(String serviceName, String accountName, String password) throws OSXKeychainException See Java_pt_davidafsilva_ghn_service_options_osx_OSXKeychain__1modifyGenericPassword for
the implementation of this and use
| |
| addGenericPassword | back to summary |
|---|---|
| public void addGenericPassword(String serviceName, String accountName, String password) throws OSXKeychainException Add a non-internet password to the keychain.
| |
| deleteGenericPassword | back to summary |
|---|---|
| public void deleteGenericPassword(String serviceName, String accountName) throws OSXKeychainException Delete a generic password from the keychain.
| |
| findGenericPassword | back to summary |
|---|---|
| public Optional Finds an existing non-internet password in the keychain
| |
| getInstance | back to summary |
|---|---|
| public static OSXKeychain getInstance() throws OSXKeychainException Get an instance of the keychain.
| |
| loadSharedObject | back to summary |
|---|---|
| private static void loadSharedObject() throws IOException Load the shared object which contains the implementations for the native methods in this class.
| |
| modifyGenericPassword | back to summary |
|---|---|
| public void modifyGenericPassword(String serviceName, String accountName, String password) throws OSXKeychainException Update an existing non-internet password to the keychain.
| |