Revize 19d25d2f
Přidáno uživatelem Stanislav Král před asi 4 roky(ů)
src/services/key_service.py | ||
---|---|---|
61 | 61 |
:return: `True` when the deletion was successful. `False` in other case |
62 | 62 |
""" |
63 | 63 |
return self.private_key_repository.delete(unique_id) |
64 |
|
|
65 |
def get_public_key(self, private_key: PrivateKey): |
|
66 |
""" |
|
67 |
Extracts a public key from the given private key |
|
68 |
:param private_key: private key from which a public key should be extracted |
|
69 |
:return: a string containing the extracted public key in PEM format |
|
70 |
""" |
|
71 |
return self.cryptography_service.extract_public_key(private_key.private_key, private_key.password) |
Také k dispozici: Unified diff
Re #8573 - Added get_public_key method to KeyService that extracts a public key from a private key