django_ca.typehints
- Type aliases¶
Various type aliases used in throughout django-ca.
- django_ca.typehints.AccessMethods¶
Serialized access method for
AccessDescription
instances.alias of
Literal
[‘ocsp’, ‘ca_issuers’, ‘ca_repository’]
- django_ca.typehints.AllowedHashTypes¶
Hash algorithms that can be used for signing certificates. NOTE: This is a duplicate of the protected
cryptography.x509.base._AllowedHashTypes
.alias of
Union
[SHA224
,SHA256
,SHA384
,SHA512
,SHA3_224
,SHA3_256
,SHA3_384
,SHA3_512
]
- django_ca.typehints.GeneralNames¶
Valid types of general names.
alias of
Literal
[‘email’, ‘URI’, ‘IP’, ‘DNS’, ‘RID’, ‘dirName’, ‘otherName’]
- django_ca.typehints.HashAlgorithms¶
Valid hash algorithm names.
These names are used in various settings, with the
--algorithm
command line parameter and in the API.alias of
Literal
[‘SHA-224’, ‘SHA-256’, ‘SHA-384’, ‘SHA-512’, ‘SHA3/224’, ‘SHA3/256’, ‘SHA3/384’, ‘SHA3/512’]
- django_ca.typehints.IPAddressType¶
Union of all IP address types
alias of
Union
[IPv4Address
,IPv6Address
,IPv4Network
,IPv6Network
]
- django_ca.typehints.KeyUsages¶
List of possible values for
KeyUsage
instances.alias of
Literal
[‘crl_sign’, ‘data_encipherment’, ‘decipher_only’, ‘digital_signature’, ‘encipher_only’, ‘key_agreement’, ‘key_cert_sign’, ‘key_encipherment’, ‘content_commitment’]
- django_ca.typehints.LogEntryTypes¶
Serialized values of
LogEntryType
instances.alias of
Literal
[‘precertificate’, ‘x509_certificate’]
- django_ca.typehints.OtherNames¶
Valid OtherName types
alias of
Literal
[‘UTF8String’, ‘UNIVERSALSTRING’, ‘IA5STRING’, ‘BOOLEAN’, ‘NULL’, ‘UTCTIME’, ‘GENERALIZEDTIME’, ‘INTEGER’, ‘OctetString’]
- class django_ca.typehints.ParsableAuthorityInformationAccess¶
- issuers: Iterable[GeneralName | str] | None¶
- ocsp: Iterable[GeneralName | str] | None¶
- class django_ca.typehints.ParsableAuthorityKeyIdentifierDict¶
- class django_ca.typehints.ParsableBasicConstraints[source]¶
Serialized representation of a BasicConstraints extension.
A value of this type is a dictionary with a
"ca"
key with a boolean value. IfTrue
, it also has a"path_length"
value that is eitherNone
or an int.
- class django_ca.typehints.ParsableDistributionPoint¶
- crl_issuer: Iterable[GeneralName | str]¶
- full_name: Iterable[GeneralName | str] | None¶
- reasons: Iterable[str | ReasonFlags]¶
- relative_name: List[SerializedObjectIdentifier] | RelativeDistinguishedName¶
- class django_ca.typehints.ParsableNameConstraints¶
- excluded: Iterable[GeneralName | str]¶
- permitted: Iterable[GeneralName | str]¶
- class django_ca.typehints.ParsableNoticeReference¶
- class django_ca.typehints.ParsablePolicyConstraints¶
- class django_ca.typehints.ParsablePolicyInformation¶
- policy_identifier: str | ObjectIdentifier¶
- policy_qualifiers: Sequence[str | UserNotice | ParsableUserNotice] | None¶
- class django_ca.typehints.ParsableUserNotice¶
-
- notice_reference: NoticeReference | ParsableNoticeReference¶
- class django_ca.typehints.SerializedAuthorityInformationAccess¶
- class django_ca.typehints.SerializedAuthorityKeyIdentifier¶
- class django_ca.typehints.SerializedBasicConstraints[source]¶
Serialized representation of a BasicConstraints extension.
A value of this type is a dictionary with a
"ca"
key with a boolean value. IfTrue
, it also has a"path_length"
value that is eitherNone
or an int.
- class django_ca.typehints.SerializedDistributionPoint¶
-
- relative_name: List[SerializedObjectIdentifier]¶
- class django_ca.typehints.SerializedDistributionPoints¶
-
- value: List[SerializedDistributionPoint]¶
- class django_ca.typehints.SerializedPolicyConstraints¶
- class django_ca.typehints.SerializedPolicyInformation¶
-
- policy_qualifiers: List[str | SerializedUserNotice] | None¶
- class django_ca.typehints.SerializedProfile¶
- algorithm: Literal['SHA-224', 'SHA-256', 'SHA-384', 'SHA-512', 'SHA3/224', 'SHA3/256', 'SHA3/384', 'SHA3/512'] | None¶
- extensions: List[SerializedPydanticExtension]¶
- subject: List[SerializedPydanticNameAttribute] | None¶
- class django_ca.typehints.SerializedSignedCertificateTimestamp¶
A dictionary with four keys: log_id, timestamp, type, version, values are all str.
- class django_ca.typehints.SerializedUserNotice¶
-
- notice_reference: SerializedNoticeReference¶
- class django_ca.typehints.SupportsLessThan(*args, **kwargs)[source]¶
Protocol that specifies <, making something sortable.
TypeVars for generics¶
- typehints.ExtensionTypeTypeVar = ~ExtensionTypeTypeVar¶
A TypeVar bound to
ExtensionType
.