Package net.sourceforge.jnlp.security
Interface CertVerifier
-
- All Known Implementing Classes:
HttpsCertVerifier,JarCertVerifier
public interface CertVerifierAn interface that provides various details about certificates of an app.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetAlreadyTrustPublisher()java.security.cert.CertPathgetCertPath()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()
-
-
-
Method Detail
-
getAlreadyTrustPublisher
boolean getAlreadyTrustPublisher()
- Returns:
- if the publisher is already trusted
-
getRootInCaCerts
boolean getRootInCaCerts()
- Returns:
- if the root is in CA certs
-
getDetails
java.util.List<java.lang.String> getDetails(java.security.cert.CertPath certPath)
- Parameters:
certPath- certificate- Returns:
- the details regarding issue with this certificate
-
getCertPath
java.security.cert.CertPath getCertPath()
- Returns:
- a valid certificate path to this certificate being verified
-
getPublisher
java.security.cert.Certificate getPublisher(java.security.cert.CertPath certPath)
- Parameters:
certPath- to be read for publisher- Returns:
- the application's publisher's certificate.
-
getRoot
java.security.cert.Certificate getRoot(java.security.cert.CertPath certPath)
- 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.
-
-