Pkcs10CertificateRequest
Representation of PKCS10 Certificate Request
Extends
PemData
<CertificationRequest
>
Implements
Constructors
new Pkcs10CertificateRequest()
new Pkcs10CertificateRequest(
raw
):Pkcs10CertificateRequest
Creates a new instance fromDER encoded buffer
Parameters
• raw: AsnEncodedType
DER encoded buffer
Returns
Overrides
PemData<CertificationRequest>.constructor
new Pkcs10CertificateRequest()
new Pkcs10CertificateRequest(
asn
):Pkcs10CertificateRequest
Creates a new instance from ASN.1 CertificationRequest
Parameters
• asn: CertificationRequest
ASN.1 CertificationRequest
Returns
Overrides
PemData<CertificationRequest>.constructor
Properties
attributes
attributes:
Attribute
[]
Gets a list fo CSR attributes
extensions
extensions:
Extension
[]
Gets a list of CSR extensions
publicKey
publicKey:
PublicKey
Gets a public key of CSR
Implementation of
rawData
readonly
rawData:ArrayBuffer
Gets a DER encoded buffer
Inherited from
PemData.rawData
signature
signature:
ArrayBuffer
Gets a signature
signatureAlgorithm
signatureAlgorithm:
HashedAlgorithm
Gets a signature algorithm
subject
subject:
string
Gets a string subject name
subjectName
subjectName:
Name
Gets the subject value from the certificate as an Name
tag
protected
readonly
tag:string
PEM tag
Overrides
PemData.tag
NAME
static
NAME:string
="PKCS#10 Certificate Request"
Overrides
PemData.NAME
Methods
equal()
equal(
data
):data is Pkcs10CertificateRequest
Returns true
if ASN.1 data is equal to another ASN.1 data, otherwise false
Parameters
• data: any
Any data
Returns
data is Pkcs10CertificateRequest
Inherited from
PemData.equal
getAttribute()
getAttribute(
type
):null
|Attribute
Returns attribute of the specified type
Parameters
• type: string
Attribute identifier
Returns
null
| Attribute
Attribute or null
getAttributes()
getAttributes(
type
):Attribute
[]
Returns a list of attributes of the specified type
Parameters
• type: string
Attribute identifier
Returns
getExtension()
getExtension(
type
):null
|Extension
Returns extension of the specified type
Parameters
• type: string
Extension identifier
Returns
null
| Extension
Extension or null
getExtensions()
getExtensions(
type
):Extension
[]
Returns a list of extension of the specified type
Parameters
• type: string
Extension identifier
Returns
getTextName()
protected
getTextName():string
Returns
string
Inherited from
PemData.getTextName
onInit()
protected
onInit(asn
):void
Occurs on instance initialization
Parameters
• asn: CertificationRequest
ASN.1 object
Returns
void
Overrides
PemData.onInit
toString()
toString()
toString():
string
Returns encoded object in PEM format
Returns
string
Inherited from
PemData.toString
toString(format)
toString(
format
):string
Returns encoded object in selected format
Parameters
• format: AsnExportType
hex, base64, base64url, pem, asn, text
Returns
string
Inherited from
PemData.toString
toTextObject()
toTextObject():
TextObject
Returns
Overrides
PemData.toTextObject
toTextObjectEmpty()
protected
toTextObjectEmpty(value
?):TextObject
Parameters
• value?: string
Returns
Inherited from
PemData.toTextObjectEmpty
verify()
verify(
crypto
):Promise
<boolean
>
Validates CSR signature
Parameters
• crypto: Crypto
= ...
Crypto provider. Default is from CryptoProvider
Returns
Promise
<boolean
>
isAsnEncoded()
static
isAsnEncoded(data
):data is AsnEncodedType
Parameters
• data: any
Returns
data is AsnEncodedType
Inherited from
PemData.isAsnEncoded
toArrayBuffer()
static
toArrayBuffer(raw
):ArrayBuffer
Converts encoded raw to ArrayBuffer. Supported formats are HEX, DER, Base64, Base64Url, PEM
Parameters
• raw: string
| BufferSource
Encoded data
Returns
ArrayBuffer
Inherited from
PemData.toArrayBuffer