equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package sun.security.tools; |
26 package sun.security.tools; |
27 |
27 |
28 import sun.misc.SharedSecrets; |
|
29 import java.io.*; |
28 import java.io.*; |
30 import java.security.CodeSigner; |
29 import java.security.CodeSigner; |
31 import java.security.KeyStore; |
30 import java.security.KeyStore; |
32 import java.security.KeyStoreException; |
31 import java.security.KeyStoreException; |
33 import java.security.MessageDigest; |
32 import java.security.MessageDigest; |
2307 dumpCert(x, out); |
2306 dumpCert(x, out); |
2308 } else { |
2307 } else { |
2309 printX509Cert(x, out); |
2308 printX509Cert(x, out); |
2310 } |
2309 } |
2311 out.println(); |
2310 out.println(); |
2312 } |
|
2313 } |
|
2314 CRL[] crls = SharedSecrets |
|
2315 .getJavaSecurityCodeSignerAccess() |
|
2316 .getCRLs(signer); |
|
2317 if (crls != null) { |
|
2318 out.println(rb.getString("CRLs.")); |
|
2319 out.println(); |
|
2320 for (CRL crl: crls) { |
|
2321 printCRL(crl, out); |
|
2322 } |
2311 } |
2323 } |
2312 } |
2324 } |
2313 } |
2325 } |
2314 } |
2326 } |
2315 } |