Certificate
Class from RFC5280
Static Method Summary
Static Public Methods | ||
public static |
defaultValues(memberName: string): * Return default values for all class members |
|
public static |
Return value of asn1js schema for current class |
Constructor Summary
Public Constructor | ||
public |
constructor(parameters: Object) Constructor for Certificate class |
Member Summary
Public Members | ||
public |
If present, this field is a SEQUENCE of one or more certificate extensions |
|
public |
The issuer field identifies the entity that has signed and issued the certificate |
|
public |
The subject and issuer unique identifiers are present in the certificate to handle the possibility of reuse of subject and/or issuer names over time |
|
public |
The date on which the certificate validity period ends |
|
public |
The date on which the certificate validity period begins |
|
public |
serialNumber: Integer Serial number of the certificate |
|
public |
This field contains the algorithm identifier for the algorithm used by the CA to sign the certificate |
|
public |
The signatureAlgorithm field contains the identifier for the cryptographic algorithm used by the CA to sign this certificate |
|
public |
signatureValue: BitString The signatureValue field contains a digital signature computed upon the ASN.1 DER encoded tbsCertificate |
|
public |
The subject field identifies the entity associated with the public key stored in the subject public key field |
|
public |
This field is used to carry the public key and identify the algorithm with which the key is used |
|
public |
The subject and issuer unique identifiers are present in the certificate to handle the possibility of reuse of subject and/or issuer names over time |
|
public |
ToBeSigned (TBS) part of the certificate |
|
public |
Version number |
Method Summary
Public Methods | ||
public |
encodeTBS(): * Create ASN.1 schema for existing values of TBS part for the certificate |
|
public |
fromSchema(schema: Object) Convert parsed asn1js object into current class |
|
public |
getKeyHash(): * Get SHA-1 hash value for subject public key |
|
public |
getPublicKey(parameters: undefined): * Importing public key for current certificate |
|
public |
Make a signature for current value from TBS section |
|
public |
Convertion for the class to JSON object |
|
public |
Convert current object to asn1js object and set correct values |
|
public |
|
Static Public Methods
Public Constructors
Public Members
public extensions: Array source
If present, this field is a SEQUENCE of one or more certificate extensions
public issuer: RelativeDistinguishedNames source
The issuer field identifies the entity that has signed and issued the certificate
public issuerUniqueID: ArrayBuffer source
The subject and issuer unique identifiers are present in the certificate to handle the possibility of reuse of subject and/or issuer names over time
public signature: AlgorithmIdentifier source
This field contains the algorithm identifier for the algorithm used by the CA to sign the certificate
public signatureAlgorithm: AlgorithmIdentifier source
The signatureAlgorithm field contains the identifier for the cryptographic algorithm used by the CA to sign this certificate
public signatureValue: BitString source
The signatureValue field contains a digital signature computed upon the ASN.1 DER encoded tbsCertificate
public subject: RelativeDistinguishedNames source
The subject field identifies the entity associated with the public key stored in the subject public key field
public subjectPublicKeyInfo: PublicKeyInfo source
This field is used to carry the public key and identify the algorithm with which the key is used
public subjectUniqueID: ArrayBuffer source
The subject and issuer unique identifiers are present in the certificate to handle the possibility of reuse of subject and/or issuer names over time
Public Methods
public encodeTBS(): * source
Create ASN.1 schema for existing values of TBS part for the certificate
Return:
* |
public fromSchema(schema: Object) source
Convert parsed asn1js object into current class
Params:
Name | Type | Attribute | Description |
schema | Object |
|
public getPublicKey(parameters: undefined): * source
Importing public key for current certificate
Params:
Name | Type | Attribute | Description |
parameters | undefined |
|
Return:
* |
public sign(privateKey: Object, hashAlgorithm: string): * source
Make a signature for current value from TBS section
Return:
* |