Fix 143163: Add public constructors for some CRMF classes.

This commit is contained in:
nicolson%netscape.com 2002-08-28 18:20:24 +00:00
Родитель 778302c1c6
Коммит d784f5eac1
2 изменённых файлов: 14 добавлений и 3 удалений

Просмотреть файл

@ -53,13 +53,20 @@ public class CertRequest implements ASN1Value {
private CertRequest() { }
/**
* Private constructor for the Template class.
* @param certReqId May NOT be null.
* @param certTemplate May NOT be null.
* @param controls May be null.
*/
CertRequest(INTEGER certReqId, CertTemplate certTemplate,
public CertRequest(INTEGER certReqId, CertTemplate certTemplate,
SEQUENCE controls)
{
if( certReqId == null ) {
throw new NullPointerException("certReqId is null");
}
this.certReqId = certReqId;
if( certTemplate == null ) {
throw new NullPointerException("certTemplate is null");
}
this.certTemplate = certTemplate;
this.controls = controls;
}

Просмотреть файл

@ -62,7 +62,11 @@ public class CertTemplate implements ASN1Value {
private BIT_STRING subjectUID;
private SEQUENCE extensions;
CertTemplate() { }
/**
* Creates an empty CertTemplate. Use the accessor methods to fill it
* up with stuff.
*/
public CertTemplate() { }
/**
* Returns true if the version field is present.