AccessDescription ¶
Bases: CryptoParser
Represents an Access Description in X.509 certificates.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: x509.AccessDescription) -> AccessDescription
Constructs an AccessDescription object from a cryptography AccessDescription object.
Parameters: |
|
---|
Returns: |
|
---|
AccessDescriptionId ¶
Bases: Enum
Enumeration of access description identifiers for X.509 certificates.
AlternativeName ¶
Bases: Extension
Represents an alternative name extension.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: Union[x509.SubjectAlternativeName, x509.IssuerAlternativeName]) -> AlternativeName
Create an AlternativeName instance from a cryptography SubjectAlternativeName or IssuerAlternativeName object.
Parameters: |
|
---|
Returns: |
|
---|
AttributeTypeAndValue ¶
Bases: CryptoParser
Represents an Attribute Type and Value in X.509 certificates.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(x509_obj: x509.NameAttribute) -> AttributeTypeAndValue
Constructs an AttributeTypeAndValue object from a cryptography NameAttribute object.
Parameters: |
|
---|
Returns: |
|
---|
AuthorityInformationAccess ¶
Bases: Extension
Represents the Authority Information Access extension in X.509 certificates.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: x509.AuthorityInformationAccess) -> AuthorityInformationAccess
Constructs an AuthorityInformationAccess object from a cryptography AuthorityInformationAccess object.
Parameters: |
|
---|
Returns: |
|
---|
AuthorityKeyIdentifier ¶
Bases: Extension
Represents an authority key identifier extension.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: x509.AuthorityKeyIdentifier) -> AuthorityKeyIdentifier
Create an AuthorityKeyIdentifier instance from a cryptography AuthorityKeyIdentifier object.
Parameters: |
|
---|
Returns: |
|
---|
BasicConstraints ¶
Bases: Extension
Represents a basic constraints extension.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: x509.BasicConstraints) -> BasicConstraints
Create a BasicConstraints instance from a cryptography BasicConstraints object.
Parameters: |
|
---|
Returns: |
|
---|
CertificatePolicies ¶
Bases: Extension
Represents a certificate policies extension.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: x509.CertificatePolicies) -> CertificatePolicies
Create a CertificatePolicies instance from a cryptography CertificatePolicies object.
Parameters: |
|
---|
Returns: |
|
---|
CrlDistributionPoints ¶
Bases: Extension
Represents the CRL Distribution Points extension in X.509 certificates.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: x509.CRLDistributionPoints) -> CrlDistributionPoints
Constructs a CrlDistributionPoints object from a cryptography CRLDistributionPoints object.
Parameters: |
|
---|
Returns: |
|
---|
DirectoryName ¶
Bases: GeneralName
Represents a directory name.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(crypto_obj: x509.GeneralName) -> DirectoryName
Create a DirectoryName instance from a cryptography DirectoryName object.
Parameters: |
|
---|
Returns: |
|
---|
DistributionPoint ¶
Bases: CryptoParser
Represents a Distribution Point in X.509 certificates.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: x509.DistributionPoint) -> DistributionPoint
Constructs a DistributionPoint object from a cryptography DistributionPoint object.
Parameters: |
|
---|
Returns: |
|
---|
DnsName ¶
ExtendedKeyUsage ¶
Bases: Extension
Represents the Extended Key Usage extension in X.509 certificates.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: x509.ExtendedKeyUsage) -> ExtendedKeyUsage
Constructs an ExtendedKeyUsage object from a cryptography ExtendedKeyUsage object.
Parameters: |
|
---|
Returns: |
|
---|
Extension ¶
Bases: CryptoParser
Represents a cryptographic extension.
Attributes: |
|
---|
name
property
¶
name: str
Get the name of the extension.
Returns: |
|
---|
Extensions ¶
Bases: CryptoParser
Extensions in X.509 certificates.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(cert_extensions: x509.Extensions) -> Extensions
Constructs an Extensions object from cryptography X.509 Extensions.
Parameters: |
|
---|
Returns: |
|
---|
FreshestCrl ¶
GeneralName ¶
Bases: CryptoParser
Represents a general name.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(crypto_obj: x509.GeneralName) -> GeneralName
Create a GeneralName instance from a cryptography GeneralName object.
Parameters: |
|
---|
Returns: |
|
---|
InhibitAnyPolicy ¶
Bases: Extension
Represents the Inhibit Any Policy extension in X.509 certificates.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: x509.InhibitAnyPolicy) -> InhibitAnyPolicy
Constructs an InhibitAnyPolicy object from a cryptography InhibitAnyPolicy object.
Parameters: |
|
---|
Returns: |
|
---|
IpAddress ¶
Bases: GeneralName
Represents an IP address. Can either be a IPv4/IPv6 single address or network.
Attributes: |
|
---|
IssuerAlternativeName ¶
Bases: AlternativeName
Represents an issuer alternative name extension.
KeyUsage ¶
Bases: Extension
Represents a key usage extension.
Attributes: |
|
---|
NameConstraints ¶
Bases: Extension
Represents a name constraints extension.
Attributes: |
|
---|
NoticeReference ¶
Bases: Extension
Represents a notice reference extension.
Attributes: |
|
---|
OtherName ¶
Bases: GeneralName
Represents an other name.
Attributes: |
|
---|
PolicyConstraints ¶
Bases: Extension
Represents a policy constraints extension.
Attributes: |
|
---|
PolicyInformation ¶
Bases: Extension
Represents a policy information extension.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(policy_info: x509.PolicyInformation) -> PolicyInformation
Create a PolicyInformation instance from a cryptography PolicyInformation object.
Parameters: |
|
---|
Returns: |
|
---|
RFC822Name ¶
Reason ¶
Bases: Enum
Reasons for the DistributionPoint extension
RegisteredId ¶
Bases: GeneralName
Represents a registered ID.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(crypto_obj: x509.RegisteredID) -> RegisteredId
Create a RegisteredId instance from a cryptography RegisteredId object.
Parameters: |
|
---|
Returns: |
|
---|
RelativeDistinguishedName ¶
Bases: CryptoParser
Represents a Relative Distinguished Name in X.509 certificates.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(x509_obj: x509.RelativeDistinguishedName) -> RelativeDistinguishedName
Constructs a RelativeDistinguishedName object from a cryptography RelativeDistinguishedName object.
Parameters: |
|
---|
Returns: |
|
---|
SubjectAlternativeName ¶
Bases: AlternativeName
Represents a subject alternative name extension.
SubjectDirectoryAttributes ¶
Bases: Extension
Represents a subject directory attributes extension.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: x509.UnrecognizedExtension) -> SubjectDirectoryAttributes
Create a SubjectDirectoryAttributes instance from a cryptography UnrecognizedExtension object.
Parameters: |
|
---|
Returns: |
|
---|
SubjectInformationAccess ¶
Bases: AuthorityInformationAccess
Represents the Subject Information Access extension in X.509 certificates.
SubjectKeyIdentifier ¶
Bases: Extension
Represents a subject key identifier extension.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(extension: x509.SubjectKeyIdentifier) -> SubjectKeyIdentifier
Create a SubjectKeyIdentifier instance from a cryptography SubjectKeyIdentifier object.
Parameters: |
|
---|
Returns: |
|
---|
UniformResourceIdentifier ¶
Bases: GeneralName
Represents a uniform resource identifier (URI).
Attributes: |
|
---|
UserNotice ¶
Bases: Extension
Represents a user notice extension.
Attributes: |
|
---|
from_cryptography
classmethod
¶
from_cryptography(policy_info: x509.UserNotice) -> UserNotice
Create a UserNotice instance from a cryptography UserNotice object.
Parameters: |
|
---|
Returns: |
|
---|