2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-16 00:04:26 +00:00

Add CertificateType filtering support for Locate

This change updates Locate operation support in the PyKMIP server,
allowing users to filter objects based on the object's
Certificate Type. 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 Certificate Type filtering. Simply use the
"--certificate-type" flag to specify a Certificate Type
enumeration values for the Locate script to filter on.
This commit is contained in:
Peter Hamilton
2019-08-16 16:53:15 -04:00
committed by Peter Hamilton
parent b5a8739157
commit 44d55f2550
9 changed files with 376 additions and 5 deletions

View File

@@ -287,6 +287,14 @@ def build_cli_parser(operation=None):
"(e.g., CERTIFICATE, SYMMETRIC_KEY)"
)
)
parser.add_option(
"--certificate-type",
action="store",
type="str",
default=None,
dest="certificate_type",
help="The certificate type of the secret (e.g., X_509)"
)
parser.add_option(
"--cryptographic-algorithm",
action="store",