Package net.sourceforge.jnlp.security
Class HttpsCertVerifier
- java.lang.Object
-
- net.sourceforge.jnlp.security.HttpsCertVerifier
-
- All Implemented Interfaces:
CertVerifier
public class HttpsCertVerifier extends java.lang.Object implements CertVerifier
-
-
Constructor Summary
Constructors Constructor Description HttpsCertVerifier(java.security.cert.X509Certificate[] chain, java.lang.String authType, boolean isTrusted, boolean hostMatched, java.lang.String hostName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAlreadyTrustPublisher()java.security.cert.CertPathgetCertPath(java.security.cert.CertPath certPath)java.util.List<java.lang.String>getDetails(java.security.cert.CertPath certPath)java.security.cert.CertificategetPublisher(java.security.cert.CertPath certPath)java.security.cert.CertificategetRoot(java.security.cert.CertPath certPath)booleangetRootInCacerts()booleanhasSigningIssues(java.security.cert.CertPath certPath)
-
-
-
Method Detail
-
getAlreadyTrustPublisher
public boolean getAlreadyTrustPublisher()
- Specified by:
getAlreadyTrustPublisherin interfaceCertVerifier- Returns:
- if the publisher is already trusted
-
getCertPath
public java.security.cert.CertPath getCertPath(java.security.cert.CertPath certPath)
- Specified by:
getCertPathin interfaceCertVerifier- Parameters:
certPath- to be read- Returns:
- a valid certificate path to this certificate being verified
-
getDetails
public java.util.List<java.lang.String> getDetails(java.security.cert.CertPath certPath)
- Specified by:
getDetailsin interfaceCertVerifier- Parameters:
certPath- certificate- Returns:
- the details regarding issue with this certificate
-
getPublisher
public java.security.cert.Certificate getPublisher(java.security.cert.CertPath certPath)
- Specified by:
getPublisherin interfaceCertVerifier- Parameters:
certPath- to be read for publisher- Returns:
- the application's publisher's certificate.
-
getRoot
public java.security.cert.Certificate getRoot(java.security.cert.CertPath certPath)
- Specified by:
getRootin interfaceCertVerifier- 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:
getRootInCacertsin interfaceCertVerifier- Returns:
- if the root is in CA certs
-
hasSigningIssues
public boolean hasSigningIssues(java.security.cert.CertPath certPath)
- Specified by:
hasSigningIssuesin interfaceCertVerifier- Parameters:
certPath- to be validated- Returns:
- if there are signing issues with the certificate being verified
-
-