Interface ICertificateStoreService
-
Method Summary
Modifier and TypeMethodDescriptionReturns the default keystore.getDefaultKeyStoreWithExtraCertificates
(@NotNull String... certificateId) Generate a Keystore populated with the list of certificates from the certificate store using thier property IDgetKeystore
(@NotNull String id) Returns a defined group of certificates inside a keystore.getKeyStore
(@NotNull String... certificateId) Generate a Keystore populated with the list of certificates from the certificate store using thier property IDgetX509Certificate
(@NotNull String id) Retrieves the PEM certificate as a string.
-
Method Details
-
getX509Certificate
Retrieves the PEM certificate as a string.
- Parameters:
id
-- Returns:
- String certificate
- Throws:
CertificateStoreException
- if no certificate found
-
getDefaultKeystore
Returns the default keystore. This will be populated by any certificates defined: certificates.default.ids=XXXX,YYYY,etc certificates.x509.XXXX.pem=... certificates.x509.YYYY.der=...
- Returns:
- Throws:
CertificateStoreException
-
getKeystore
Returns a defined group of certificates inside a keystore. This will be populated by any certificates defined:certificates.<GroupId>.ids=XXXX,YYYY,etc certificates.x509.XXXX.pem=... certificates.x509.YYYY.der=...
- Parameters:
id
-- Returns:
- Throws:
CertificateStoreException
-
getKeyStore
Generate a Keystore populated with the list of certificates from the certificate store using thier property ID
If no id's are passed then an empty Keystore is generated and passed back, with the assumption the tester has the desired certificates in a test resource.
- Parameters:
certificateId
-- Returns:
- Throws:
CertificateStoreException
-
getDefaultKeyStoreWithExtraCertificates
IKeyStore getDefaultKeyStoreWithExtraCertificates(@NotNull @NotNull String... certificateId) throws CertificateStoreException Generate a Keystore populated with the list of certificates from the certificate store using thier property ID
If no id's are passed then an empty Keystore is generated and passed back, with the assumption the tester has the desired certificates in a test resource.
- Parameters:
certificateId
-- Returns:
- Throws:
CertificateStoreException
-