Package net.sourceforge.jnlp.security
Interface AppVerifier
- All Known Implementing Classes:
JNLPAppVerifier,PluginAppVerifier
public interface AppVerifier
An interface that provides various details about an app's signers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckTrustWithUser(JNLPClassLoader.SecurityDelegate securityDelegate, JarCertVerifier jcv, JNLPFile file) Prompt the user with requests for trusting the certificates used by this appbooleanhasAlreadyTrustedPublisher(Map<CertPath, CertInformation> certs, Map<String, Integer> signedJars) Checks if the app has already found trust in its publisher(s).booleanhasRootInCacerts(Map<CertPath, CertInformation> certs, Map<String, Integer> signedJars) Checks if the app has signer(s) whose certs along their chains are in CA certs.booleanisFullySigned(Map<CertPath, CertInformation> certs, Map<String, Integer> signedJars) Checks if the app's jars are covered by the provided certificates, enough to consider the app fully signed.
-
Method Details
-
hasAlreadyTrustedPublisher
boolean hasAlreadyTrustedPublisher(Map<CertPath, CertInformation> certs, Map<String, Integer> signedJars) Checks if the app has already found trust in its publisher(s).- Parameters:
certs- The certs to search through and their cert informationsignedJars- A map of all the jars of this app and the number of signed entries each one has.- Returns:
- True if the app trusts its publishers.
-
hasRootInCacerts
Checks if the app has signer(s) whose certs along their chains are in CA certs.- Parameters:
certs- The certs to search through and their cert informationsignedJars- A map of all the jars of this app and the number of signed entries each one has.- Returns:
- True if the app has a root in the CA certs store.
-
isFullySigned
Checks if the app's jars are covered by the provided certificates, enough to consider the app fully signed.- Parameters:
certs- Any possible signer and their respective information regarding this app.signedJars- A map of all the jars of this app and the number of signed entries each one has.- Returns:
- true if jar is fully signed
-
checkTrustWithUser
void checkTrustWithUser(JNLPClassLoader.SecurityDelegate securityDelegate, JarCertVerifier jcv, JNLPFile file) throws LaunchException Prompt the user with requests for trusting the certificates used by this app- Parameters:
securityDelegate- parental securityjcv- jar verifierfile- jnlp fiel to provide information- Throws:
LaunchException- if it fails to verify
-