File tree 1 file changed +10
-10
lines changed
src/jdk.jartool/share/classes/jdk/security/jarsigner
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2015, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2015, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
76
76
* a {@link NullPointerException}.
77
77
* <p>
78
78
* Example:
79
- * <pre>
80
- * JarSigner signer = new JarSigner.Builder(key, certPath)
81
- * .digestAlgorithm("SHA-1")
82
- * .signatureAlgorithm("SHA1withDSA")
83
- * .build();
84
- * try (ZipFile in = new ZipFile(inputFile);
85
- * FileOutputStream out = new FileOutputStream(outputFile)) {
86
- * signer.sign(in, out);
79
+ * {@snippet lang="java" :
80
+ * JarSigner signer = new JarSigner.Builder(key, certPath)
81
+ * .digestAlgorithm("SHA-256")
82
+ * .signatureAlgorithm("SHA256withRSA")
83
+ * .build();
84
+ * try (ZipFile in = new ZipFile(inputFile);
85
+ * FileOutputStream out = new FileOutputStream(outputFile)) {
86
+ * signer.sign(in, out);
87
+ * }
87
88
* }
88
- * </pre>
89
89
*
90
90
* @since 9
91
91
*/
You can’t perform that action at this time.
0 commit comments