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 TypeMethodDescriptionboolean
getCertPath
(CertPath certPath) getDetails
(CertPath certPath) getPublisher
(CertPath certPath) boolean
boolean
hasSigningIssues
(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:
getAlreadyTrustPublisher
in interfaceCertVerifier
- Returns:
- if the publisher is already trusted
-
getCertPath
- Specified by:
getCertPath
in interfaceCertVerifier
- Parameters:
certPath
- to be read- Returns:
- a valid certificate path to this certificate being verified
-
getDetails
- Specified by:
getDetails
in interfaceCertVerifier
- Parameters:
certPath
- certificate- Returns:
- the details regarding issue with this certificate
-
getPublisher
- Specified by:
getPublisher
in interfaceCertVerifier
- Parameters:
certPath
- to be read for publisher- Returns:
- the application's publisher's certificate.
-
getRoot
- Specified by:
getRoot
in 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:
getRootInCacerts
in interfaceCertVerifier
- Returns:
- if the root is in CA certs
-
hasSigningIssues
- Specified by:
hasSigningIssues
in interfaceCertVerifier
- Parameters:
certPath
- to be validated- Returns:
- if there are signing issues with the certificate being verified
-