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
DER encoded buffer
Returns
Overrides
new Pkcs10CertificateRequest()
new Pkcs10CertificateRequest(
asn
):Pkcs10CertificateRequest
Creates a new instance from ASN.1 CertificationRequest
Parameters
asn
CertificationRequest
ASN.1 CertificationRequest
Returns
Overrides
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
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
NAME
static
NAME:string
="PKCS#10 Certificate Request"
Overrides
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
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
onInit()
protected
onInit(asn
):void
Occurs on instance initialization
Parameters
asn
CertificationRequest
ASN.1 object
Returns
void
Overrides
toString()
Call Signature
toString():
string
Returns encoded object in PEM format
Returns
string
Inherited from
Call Signature
toString(
format
):string
Returns encoded object in selected format
Parameters
format
hex, base64, base64url, pem, asn, text
Returns
string
Inherited from
toTextObject()
toTextObject():
TextObject
Returns the object in textual representation
Returns
Overrides
toTextObjectEmpty()
protected
toTextObjectEmpty(value
?):TextObject
Parameters
value?
string
Returns
Inherited from
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
toArrayBuffer()
static
toArrayBuffer(raw
):ArrayBuffer
Converts encoded raw to ArrayBuffer. Supported formats are HEX, DER, Base64, Base64Url, PEM
Parameters
raw
Encoded data
string
| BufferSource
Returns
ArrayBuffer