public class JNLPAppVerifier extends java.lang.Object implements AppVerifier
| Constructor and Description |
|---|
JNLPAppVerifier() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkTrustWithUser(JarCertVerifier jcv,
JNLPFile file)
Prompt the user with requests for trusting the certificates used by this app
|
boolean |
hasAlreadyTrustedPublisher(java.util.Map<java.security.cert.CertPath,CertInformation> certs,
java.util.Map<java.lang.String,java.lang.Integer> signedJars)
Checks if the app has already found trust in its publisher(s).
|
boolean |
hasCompletelySignedApp(CertInformation info,
int sumOfSignableEntries)
Find out if the CertPath with the given info has fully signed the app.
|
boolean |
hasRootInCacerts(java.util.Map<java.security.cert.CertPath,CertInformation> certs,
java.util.Map<java.lang.String,java.lang.Integer> signedJars)
Checks if the app has signer(s) whose certs along their chains are in CA certs.
|
boolean |
isFullySigned(java.util.Map<java.security.cert.CertPath,CertInformation> certs,
java.util.Map<java.lang.String,java.lang.Integer> signedJars)
Checks if the app's jars are covered by the provided certificates, enough
to consider the app fully signed.
|
public boolean hasAlreadyTrustedPublisher(java.util.Map<java.security.cert.CertPath,CertInformation> certs, java.util.Map<java.lang.String,java.lang.Integer> signedJars)
AppVerifierhasAlreadyTrustedPublisher in interface AppVerifiercerts - 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.public boolean hasRootInCacerts(java.util.Map<java.security.cert.CertPath,CertInformation> certs, java.util.Map<java.lang.String,java.lang.Integer> signedJars)
AppVerifierhasRootInCacerts in interface AppVerifiercerts - 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.public boolean isFullySigned(java.util.Map<java.security.cert.CertPath,CertInformation> certs, java.util.Map<java.lang.String,java.lang.Integer> signedJars)
AppVerifierisFullySigned in interface AppVerifiercerts - 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.public void checkTrustWithUser(JarCertVerifier jcv, JNLPFile file) throws LaunchException
AppVerifiercheckTrustWithUser in interface AppVerifierLaunchExceptionpublic boolean hasCompletelySignedApp(CertInformation info, int sumOfSignableEntries)
info - The information regarding the CertPath in questionsumOfSignableEntries - The total number of signable entries in the app.