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

@ -35,9 +35,9 @@ import sun.security.util.*;
*
* @author Amit Kapoor
* @author Hemma Prafullchandra
* @see CertAttrSet
* @see DerEncoder
*/
public class CertificateValidity implements CertAttrSet {
public class CertificateValidity implements DerEncoder {
public static final String NAME = "validity";
/**
@ -142,7 +142,7 @@ public class CertificateValidity implements CertAttrSet {
// in cases where default constructor is used check for
// null values
if (notBefore == null || notAfter == null) {
throw new IOException("CertAttrSet:CertificateValidity:" +
throw new IOException("CertificateValidity:" +
" null values to encode.\n");
}
DerOutputStream pair = new DerOutputStream();