diff options
author | Adam Domurad <[email protected]> | 2012-10-19 14:34:16 -0400 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2012-10-19 14:34:16 -0400 |
commit | eca6b5289555031b31da4721800f5031c87bb309 (patch) | |
tree | 45378524fa07783879a1b21d90538b763538df8a /netx/net/sourceforge/jnlp/security/JNLPAppVerifier.java | |
parent | e150560769232e18fa516609933649dab002f358 (diff) |
Use interface types in JCV classes where applicable
Diffstat (limited to 'netx/net/sourceforge/jnlp/security/JNLPAppVerifier.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/security/JNLPAppVerifier.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/netx/net/sourceforge/jnlp/security/JNLPAppVerifier.java b/netx/net/sourceforge/jnlp/security/JNLPAppVerifier.java index 9dcfaf5..cbc9db0 100644 --- a/netx/net/sourceforge/jnlp/security/JNLPAppVerifier.java +++ b/netx/net/sourceforge/jnlp/security/JNLPAppVerifier.java @@ -40,7 +40,6 @@ package net.sourceforge.jnlp.security; import static net.sourceforge.jnlp.runtime.Translator.R; import java.security.cert.CertPath; -import java.util.HashMap; import java.util.Map; import net.sourceforge.jnlp.JNLPFile; @@ -53,8 +52,8 @@ public class JNLPAppVerifier implements AppVerifier { @Override public boolean hasAlreadyTrustedPublisher( - HashMap<CertPath, CertInformation> certs, - HashMap<String, Integer> signedJars) { + Map<CertPath, CertInformation> certs, + Map<String, Integer> signedJars) { int sumOfSignableEntries = JarCertVerifier.getTotalJarEntries(signedJars); for (CertInformation certInfo : certs.values()) { Map<String, Integer> certSignedJars = certInfo.getSignedJars(); @@ -68,8 +67,8 @@ public class JNLPAppVerifier implements AppVerifier { } @Override - public boolean hasRootInCacerts(HashMap<CertPath, CertInformation> certs, - HashMap<String, Integer> signedJars) { + public boolean hasRootInCacerts(Map<CertPath, CertInformation> certs, + Map<String, Integer> signedJars) { int sumOfSignableEntries = JarCertVerifier.getTotalJarEntries(signedJars); for (CertInformation certInfo : certs.values()) { Map<String, Integer> certSignedJars = certInfo.getSignedJars(); @@ -83,8 +82,8 @@ public class JNLPAppVerifier implements AppVerifier { } @Override - public boolean isFullySigned(HashMap<CertPath, CertInformation> certs, - HashMap<String, Integer> signedJars) { + public boolean isFullySigned(Map<CertPath, CertInformation> certs, + Map<String, Integer> signedJars) { int sumOfSignableEntries = JarCertVerifier.getTotalJarEntries(signedJars); for (CertPath cPath : certs.keySet()) { // If this cert has signed everything, return true |