зеркало из https://github.com/mozilla/gecko-dev.git
Fix 143163: Add public constructors for some CRMF classes.
This commit is contained in:
Родитель
778302c1c6
Коммит
d784f5eac1
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче