Package net.sourceforge.jnlp.security
Class HttpsCertVerifier
java.lang.Object
net.sourceforge.jnlp.security.HttpsCertVerifier
- All Implemented Interfaces:
CertVerifier
-
Constructor Summary
ConstructorsConstructorDescriptionHttpsCertVerifier(X509Certificate[] chain, String authType, boolean isTrusted, boolean hostMatched, String hostName) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCertPath(CertPath certPath) getDetails(CertPath certPath) getPublisher(CertPath certPath) booleanbooleanhasSigningIssues(CertPath certPath)
-
Constructor Details
-
HttpsCertVerifier
public HttpsCertVerifier(X509Certificate[] chain, String authType, boolean isTrusted, boolean hostMatched, String hostName)
-
-
Method Details
-
getAlreadyTrustPublisher
public boolean getAlreadyTrustPublisher()- Specified by:
getAlreadyTrustPublisherin interfaceCertVerifier- Returns:
- if the publisher is already trusted
-
getCertPath
- Specified by:
getCertPathin interfaceCertVerifier- Parameters:
certPath- to be read- Returns:
- a valid certificate path to this certificate being verified
-
getDetails
- Specified by:
getDetailsin interfaceCertVerifier- Parameters:
certPath- certificate- Returns:
- the details regarding issue with this certificate
-
getPublisher
- Specified by:
getPublisherin interfaceCertVerifier- Parameters:
certPath- to be read for publisher- Returns:
- the application's publisher's certificate.
-
getRoot
- 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
- Specified by:
hasSigningIssuesin interfaceCertVerifier- Parameters:
certPath- to be validated- Returns:
- if there are signing issues with the certificate being verified
-