8296612: CertAttrSet is useless

Reviewed-by: mullan
This commit is contained in:
Weijun Wang 2022-11-10 22:23:58 +00:00
parent 6b456f7a9b
commit 27527b4975
52 changed files with 80 additions and 203 deletions

View file

@ -41,10 +41,8 @@ import sun.security.util.*;
* @author Amit Kapoor
* @author Hemma Prafullchandra
* @see Extension
* @see CertAttrSet
*/
public class KeyUsageExtension extends Extension
implements CertAttrSet {
public class KeyUsageExtension extends Extension {
public static final String NAME = "KeyUsage";
public static final String DIGITAL_SIGNATURE = "digital_signature";
@ -196,7 +194,7 @@ public class KeyUsageExtension extends Extension
set(8,val);
} else {
throw new IOException("Attribute name not recognized by"
+ " CertAttrSet:KeyUsage.");
+ " KeyUsage.");
}
encodeThis();
}
@ -225,7 +223,7 @@ public class KeyUsageExtension extends Extension
return isSet(8);
} else {
throw new IOException("Attribute name not recognized by"
+ " CertAttrSet:KeyUsage.");
+ " KeyUsage.");
}
}