mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8275887
: jarsigner prints invalid digest/signature algorithm warnings if keysize is weak/disabled
Reviewed-by: weijun
This commit is contained in:
parent
936f7ff49e
commit
03f8c0fb93
9 changed files with 90 additions and 89 deletions
|
@ -98,16 +98,11 @@ public class JarConstraintsParameters implements ConstraintsParameters {
|
|||
this.timestamp = latestTimestamp;
|
||||
}
|
||||
|
||||
public JarConstraintsParameters(List<X509Certificate> chain, Timestamp timestamp) {
|
||||
public JarConstraintsParameters(List<X509Certificate> chain, Date timestamp) {
|
||||
this.keys = new HashSet<>();
|
||||
this.certsIssuedByAnchor = new HashSet<>();
|
||||
addToCertsAndKeys(chain);
|
||||
if (timestamp != null) {
|
||||
addToCertsAndKeys(timestamp.getSignerCertPath());
|
||||
this.timestamp = timestamp.getTimestamp();
|
||||
} else {
|
||||
this.timestamp = null;
|
||||
}
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
// extract last certificate and signer's public key from chain
|
||||
|
@ -178,7 +173,7 @@ public class JarConstraintsParameters implements ConstraintsParameters {
|
|||
|
||||
@Override
|
||||
public String extendedExceptionMsg() {
|
||||
return message;
|
||||
return message == null ? "." : message;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue