mirror of
https://github.com/openkmip/pykmip
synced 2025-12-15 07:43:26 +00:00
Add CryptographicAlgorithm filtering support for Locate
This change updates Locate operation support in the PyKMIP server, allowing users to filter objects based on the object's Cryptographic Algorithm. If an object's type does not support the Cryptographic Algorithm attribute, that object is not a match. Unit tests and integration tests have been added to test and verify the correctness of this feature. Additionally, the Locate demo scripts have also been updated to support Cryptographic Algorithm filtering. Simply use the "--cryptographic-algorithm" flag to specify a Cryptographic Algorithm enumeration for the Locate script to filter on.
This commit is contained in:
committed by
Peter Hamilton
parent
d74b394261
commit
bf518c8393
@@ -271,6 +271,14 @@ def build_cli_parser(operation=None):
|
||||
"(e.g., CERTIFICATE, SYMMETRIC_KEY)"
|
||||
)
|
||||
)
|
||||
parser.add_option(
|
||||
"--cryptographic-algorithm",
|
||||
action="store",
|
||||
type="str",
|
||||
default=None,
|
||||
dest="cryptographic_algorithm",
|
||||
help="The cryptographic algorithm of the secret (e.g., AES, RSA)"
|
||||
)
|
||||
elif operation is Operation.REGISTER:
|
||||
parser.add_option(
|
||||
"-f",
|
||||
|
||||
Reference in New Issue
Block a user