Class HttpsCertVerifier

java.lang.Object
net.sourceforge.jnlp.security.HttpsCertVerifier
All Implemented Interfaces:
CertVerifier

public class HttpsCertVerifier extends Object implements CertVerifier
  • Constructor Details

    • HttpsCertVerifier

      public HttpsCertVerifier(X509Certificate[] chain, String authType, boolean isTrusted, boolean hostMatched, String hostName)
  • Method Details

    • getAlreadyTrustPublisher

      public boolean getAlreadyTrustPublisher()
      Specified by:
      getAlreadyTrustPublisher in interface CertVerifier
      Returns:
      if the publisher is already trusted
    • getCertPath

      public CertPath getCertPath(CertPath certPath)
      Specified by:
      getCertPath in interface CertVerifier
      Parameters:
      certPath - to be read
      Returns:
      a valid certificate path to this certificate being verified
    • getDetails

      public List<String> getDetails(CertPath certPath)
      Specified by:
      getDetails in interface CertVerifier
      Parameters:
      certPath - certificate
      Returns:
      the details regarding issue with this certificate
    • getPublisher

      public Certificate getPublisher(CertPath certPath)
      Specified by:
      getPublisher in interface CertVerifier
      Parameters:
      certPath - to be read for publisher
      Returns:
      the application's publisher's certificate.
    • getRoot

      public Certificate getRoot(CertPath certPath)
      Specified by:
      getRoot in interface CertVerifier
      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.
    • getRootInCacerts

      public boolean getRootInCacerts()
      Specified by:
      getRootInCacerts in interface CertVerifier
      Returns:
      if the root is in CA certs
    • hasSigningIssues

      public boolean hasSigningIssues(CertPath certPath)
      Specified by:
      hasSigningIssues in interface CertVerifier
      Parameters:
      certPath - to be validated
      Returns:
      if there are signing issues with the certificate being verified