mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8296612: CertAttrSet is useless
Reviewed-by: mullan
This commit is contained in:
parent
6b456f7a9b
commit
27527b4975
52 changed files with 80 additions and 203 deletions
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue