Interface ICertificateStoreService


public interface ICertificateStoreService
  • Method Details

    • getX509Certificate

      X509Certificate getX509Certificate(@NotNull @NotNull String id) throws CertificateStoreException

      Retrieves the PEM certificate as a string.

      Parameters:
      id -
      Returns:
      String certificate
      Throws:
      CertificateStoreException - if no certificate found
    • getDefaultKeystore

      IKeyStore getDefaultKeystore() throws CertificateStoreException

      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

      IKeyStore getKeystore(@NotNull @NotNull String id) throws CertificateStoreException
      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

      IKeyStore getKeyStore(@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
    • 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