Package net.sourceforge.jnlp.security
Interface CertVerifier
- All Known Implementing Classes:
HttpsCertVerifier
,JarCertVerifier
public interface CertVerifier
An interface that provides various details about certificates of an app.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCertPath
(CertPath certPath) getDetails
(CertPath certPath) getPublisher
(CertPath certPath) boolean
boolean
hasSigningIssues
(CertPath certPath)
-
Method Details
-
getAlreadyTrustPublisher
boolean getAlreadyTrustPublisher()- Returns:
- if the publisher is already trusted
-
getRootInCacerts
boolean getRootInCacerts()- Returns:
- if the root is in CA certs
-
hasSigningIssues
- Parameters:
certPath
- to be validated- Returns:
- if there are signing issues with the certificate being verified
-
getDetails
- Parameters:
certPath
- certificate- Returns:
- the details regarding issue with this certificate
-
getCertPath
- Parameters:
certPath
- to be read- Returns:
- a valid certificate path to this certificate being verified
-
getPublisher
- Parameters:
certPath
- to be read for publisher- Returns:
- the application's publisher's certificate.
-
getRoot
- 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.
-