Interface CertVerifier

All Known Implementing Classes:
HttpsCertVerifier, JarCertVerifier

public interface CertVerifier
An interface that provides various details about certificates of an app.
  • Method Details

    • getAlreadyTrustPublisher

      boolean getAlreadyTrustPublisher()
      Returns:
      if the publisher is already trusted
    • getRootInCacerts

      boolean getRootInCacerts()
      Returns:
      if the root is in CA certs
    • hasSigningIssues

      boolean hasSigningIssues(CertPath certPath)
      Parameters:
      certPath - to be validated
      Returns:
      if there are signing issues with the certificate being verified
    • getDetails

      List<String> getDetails(CertPath certPath)
      Parameters:
      certPath - certificate
      Returns:
      the details regarding issue with this certificate
    • getCertPath

      CertPath getCertPath(CertPath certPath)
      Parameters:
      certPath - to be read
      Returns:
      a valid certificate path to this certificate being verified
    • getPublisher

      Certificate getPublisher(CertPath certPath)
      Parameters:
      certPath - to be read for publisher
      Returns:
      the application's publisher's certificate.
    • getRoot

      Certificate getRoot(CertPath certPath)
      Parameters:
      certPath - certificate
      Returns:
      the application's root's certificate. This may return the same certificate as getPublisher(CertPath certPath) in the event that the application is self signed.