Bases: pyndn.data.Data
Add an extension field to the certificate. :param ext: Th CertificateExtension object to add
Add a subject description field to the certificate. :param descr: The CertificateSubjectDescription object to add
Encode the contents of the certificate in DER format and set the Content and MetaInfo fields.
Returns: | The extension fields of the certificate. |
---|---|
Return type: | list of CertificateExtension |
Returns the latest date the certificate is valid at. :return: Timestamp as milliseconds since 1970. :rtype: float
Returns the earliest date the certificate is valid at. :return: Timestamp as milliseconds since 1970. :rtype: float
Returns: | The PublicKey object stored in the certificate. |
---|---|
Return type: | PublicKey |
Returns: | The subject description fields of the certificate. |
---|---|
Return type: | list of CertificateSubjectDescription |
Check if the certificate start date is in the future :return: True if the certificate cannot be used yet :rtype: boolean
Check if the certificate end date is in the past :return: True if the certificate has expired :rtype: boolean
Assign a new public key to the certificate. :param publicKey: The new public key :type publicKey: PublicKey
Bases: pyndn.security.certificate.certificate.Certificate
Extract the name of a public key from the name of an identity certificate. :param Name certificateName: The certificate name.
Returns: | The name of the public key associated with this certificate |
---|---|
Return type: | Name |
This module defines the PublicKey class which holds an encoded public key for use by the security library.
Bases: object
Create a new PublicKey by decoding the keyDer. Set the key type from the decoding.
Parameters: | keyDer (Blob) – The blob of the PublicKeyInfo in terms of DER. |
---|---|
Raises : | UnrecognizedKeyFormatException if can’t decode the key DER. |
Get the digest of the public key.
Parameters: | digestAlgorithm (int from DigestAlgorithm) – (optional) The digest algorithm. If omitted, use DigestAlgorithm.SHA256 . |
---|---|
Returns: | The digest value |
Return type: | Blob |