| 1 | ''' |
| 2 | Keystore |
| 3 | ======= |
| 4 | The :class:`Keystore` provides a mechanism for securing/storing |
| 5 | cryptographic keys (such as user credentials) in a container. |
| 6 | Typically needed to support authentication APIs such as OAuth2 |
| 7 | .. note:: |
| 8 | Typically needed to support authentication APIs such as OAuth2 |
| 9 | |
| 10 | Supported Platforms |
| 11 | ------------------- |
| 12 | Android, iOS, Windows, OS X, Linux |
| 13 | --------------- |
| 14 | ''' |
| 15 | |
| 16 | |
| 17 | class Keystore: |
| 18 | ''' |
| 19 | Keystore facade |
| 20 | ''' |
| 21 | |
| 22 | def set_key(self, servicename, key, value, **kwargs): |
| 23 | self._set_key(servicename, key, value, **kwargs) |
| 24 | |
| 25 | def _set_key(self, servicename, key, value, **kwargs): |
| 26 | raise NotImplementedError() |
| 27 | |
| 28 | def get_key(self, servicename, key, **kwargs): |
| 29 | return self._get_key(servicename, key) |
| 30 | |
| 31 | def _get_key(self, servicename, key, **kwargs): |
| 32 | raise NotImplementedError() |