mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8296143: CertAttrSet's set/get mechanism is not type-safe
Reviewed-by: mullan
This commit is contained in:
parent
d04d6566b0
commit
671f84bd86
66 changed files with 643 additions and 2902 deletions
|
@ -617,11 +617,7 @@ public class PKCS9Attribute implements DerEncoder {
|
|||
{
|
||||
DerOutputStream temp2 = new DerOutputStream();
|
||||
CertificateExtensions exts = (CertificateExtensions)value;
|
||||
try {
|
||||
exts.encode(temp2, true);
|
||||
} catch (CertificateException ex) {
|
||||
throw new IOException(ex.toString());
|
||||
}
|
||||
exts.encode(temp2, true);
|
||||
temp.write(DerValue.tag_Set, temp2.toByteArray());
|
||||
}
|
||||
break;
|
||||
|
@ -687,7 +683,7 @@ public class PKCS9Attribute implements DerEncoder {
|
|||
public String getName() {
|
||||
String n = oid.toString();
|
||||
KnownOIDs os = KnownOIDs.findMatch(n);
|
||||
return (os == null? n : os.stdName());
|
||||
return os == null ? n : os.stdName();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue