test/jdk/tools/jpackage/macosx/base/SigningCheck.java
branchJDK-8200758-branch
changeset 58647 2c43b89b1679
parent 58464 d82489644b15
child 58648 3bf53ffa9ae7
equal deleted inserted replaced
58608:a561014c28d0 58647:2c43b89b1679
    70         return matchedKey;
    70         return matchedKey;
    71     }
    71     }
    72 
    72 
    73     private static void validateCertificate(String key) {
    73     private static void validateCertificate(String key) {
    74         if (key != null) {
    74         if (key != null) {
    75             MacCertificate certificate = new MacCertificate(
    75             MacCertificate certificate = new MacCertificate(key);
    76                     key, true);
       
    77             if (!certificate.isValid()) {
    76             if (!certificate.isValid()) {
    78                 TKit.throwSkippedException("Certifcate expired: " + key);
    77                 TKit.throwSkippedException("Certifcate expired: " + key);
    79             } else {
    78             } else {
    80                 return;
    79                 return;
    81             }
    80             }