test/jdk/lib/security/CheckBlacklistedCerts.java
changeset 51994 7577686cc9bd
parent 47216 71c04702a3d5
child 52075 40aa2d50d116
equal deleted inserted replaced
51993:c0d05cf1d19d 51994:7577686cc9bd
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    57         }
    57         }
    58 
    58 
    59         // All certs in the pem files
    59         // All certs in the pem files
    60         Set<Certificate> blacklisted = new HashSet<>();
    60         Set<Certificate> blacklisted = new HashSet<>();
    61 
    61 
    62         // Hopefully src comes with test, but it might be missing if doing
    62         // Assumes the full src is available
    63         // a -testonly JPRT job.
       
    64         File[] blacklists = {
    63         File[] blacklists = {
    65             new File(System.getProperty("test.src"),
    64             new File(System.getProperty("test.src"),
    66                 "../../../make/data/blacklistedcertsconverter/blacklisted.certs.pem"),
    65                 "../../../make/data/blacklistedcertsconverter/blacklisted.certs.pem"),
    67             new File(System.getProperty("test.src"),
    66             new File(System.getProperty("test.src"),
    68                 "../../../make/closed/data/blacklistedcertsconverter/blacklisted.certs.pem")
    67                 "../../../make/closed/data/blacklistedcertsconverter/blacklisted.certs.pem")