Pkcs10CertificateRequest
Representation of PKCS10 Certificate Request
Extends
PemData<CertificationRequest>
Implements
Constructors
Constructor
new Pkcs10CertificateRequest(
raw):Pkcs10CertificateRequest
Creates a new instance fromDER encoded buffer
Parameters
raw
DER encoded buffer
Returns
Pkcs10CertificateRequest
Overrides
Constructor
new Pkcs10CertificateRequest(
asn):Pkcs10CertificateRequest
Creates a new instance from ASN.1 CertificationRequest
Parameters
asn
CertificationRequest
ASN.1 CertificationRequest
Returns
Pkcs10CertificateRequest
Overrides
Properties
asn
protectedreadonlyasn:CertificationRequest
ASN.1 object
Inherited from
tag
protectedreadonlytag:string
PEM tag
Overrides
NAME
staticNAME:string="PKCS#10 Certificate Request"
Overrides
Accessors
attributes
Get Signature
get attributes():
Attribute[]
Gets a list fo CSR attributes
Returns
extensions
Get Signature
get extensions():
Extension[]
Gets a list of CSR extensions
Returns
publicKey
Get Signature
get publicKey():
PublicKey
Gets a public key of CSR
Returns
Implementation of
rawData
Get Signature
get rawData():
ArrayBuffer
Gets a DER encoded buffer
Returns
ArrayBuffer
Inherited from
signature
Get Signature
get signature():
ArrayBuffer
Gets a signature
Returns
ArrayBuffer
signatureAlgorithm
Get Signature
get signatureAlgorithm():
HashedAlgorithm
Gets a signature algorithm
Returns
subject
Get Signature
get subject():
string
Gets a string subject name
Returns
string
subjectName
Get Signature
get subjectName():
Name
Gets the subject value from the certificate as an Name
Returns
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):Attribute|null
Returns attribute of the specified type
Parameters
type
string
Attribute identifier
Returns
Attribute | null
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):Extension|null
Returns extension of the specified type
Parameters
type
string
Extension identifier
Returns
Extension | null
Extension or null
getExtensions()
getExtensions(
type):Extension[]
Returns a list of extension of the specified type
Parameters
type
string
Extension identifier
Returns
getTextName()
protectedgetTextName():string
Returns
string
Inherited from
onInit()
protectedonInit(_asn):void
Occurs on instance initialization
Parameters
_asn
CertificationRequest
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()
protectedtoTextObjectEmpty(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()
staticisAsnEncoded(data):data is AsnEncodedType
Parameters
data
any
Returns
data is AsnEncodedType
Inherited from
toArrayBuffer()
statictoArrayBuffer(raw):ArrayBuffer
Converts encoded raw to ArrayBuffer. Supported formats are HEX, DER, Base64, Base64Url, PEM
Parameters
raw
Encoded data
string | BufferSource
Returns
ArrayBuffer