django_ca.typehints - Type aliases

Various type aliases used in throughout django-ca.

class django_ca.typehints.BasicConstraintsBase
ca: bool
django_ca.typehints.ExtensionTypeTypeVar

A type variable for a ExtensionType instance.

alias of TypeVar(‘ExtensionTypeTypeVar’, bound=ExtensionType)

django_ca.typehints.IterableItem

TypeVar representing a value contained in an iterable extension.

alias of TypeVar(‘IterableItem’)

class django_ca.typehints.ParsableAuthorityInformationAccess
issuers: Optional[Iterable[Union[GeneralName, str]]]
ocsp: Optional[Iterable[Union[GeneralName, str]]]
class django_ca.typehints.ParsableAuthorityKeyIdentifierDict
authority_cert_issuer: Iterable[str]
authority_cert_serial_number: Optional[int]
key_identifier: Optional[bytes]
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. If True, it also has a "pathlen" value that is either None or an int.

ca: bool
pathlen: Union[int, str]
class django_ca.typehints.ParsableDistributionPoint
crl_issuer: Iterable[Union[GeneralName, str]]
full_name: Optional[Iterable[Union[GeneralName, str]]]
reasons: Iterable[Union[str, ReasonFlags]]
relative_name: Union[str, RelativeDistinguishedName]
class django_ca.typehints.ParsableExtension
critical: bool
value: Any
django_ca.typehints.ParsableItem

TypeVar representing a parsable list item.

alias of TypeVar(‘ParsableItem’)

class django_ca.typehints.ParsableNameConstraints
excluded: Iterable[Union[GeneralName, str]]
permitted: Iterable[Union[GeneralName, str]]
class django_ca.typehints.ParsableNoticeReference
notice_numbers: Iterable[int]
organization: str
class django_ca.typehints.ParsablePolicyConstraints
inhibit_policy_mapping: int
require_explicit_policy: int
class django_ca.typehints.ParsablePolicyInformation
policy_identifier: Union[str, ObjectIdentifier]
policy_qualifiers: Optional[Sequence[Union[str, UserNotice, ParsableUserNotice]]]
class django_ca.typehints.ParsableUserNotice
explicit_text: str
notice_reference: Union[NoticeReference, ParsableNoticeReference]
django_ca.typehints.ParsableValue

A value that can be parsed to a valid extension.

alias of TypeVar(‘ParsableValue’)

django_ca.typehints.PrivateKeyTypes

Private key types that we support

alias of Union[DSAPrivateKey, RSAPrivateKey, EllipticCurvePrivateKey, Ed448PrivateKey, Ed25519PrivateKey]

class django_ca.typehints.SerializedAuthorityInformationAccess
issuers: List[str]
ocsp: List[str]
class django_ca.typehints.SerializedAuthorityKeyIdentifier
authority_cert_issuer: List[str]
authority_cert_serial_number: int
key_identifier: str
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. If True, it also has a "pathlen" value that is either None or an int.

ca: bool
pathlen: Optional[int]
class django_ca.typehints.SerializedDistributionPoint
crl_issuer: List[str]
full_name: List[str]
reasons: List[str]
relative_name: str
class django_ca.typehints.SerializedDistributionPoints
critical: bool
value: List[SerializedDistributionPoint]
class django_ca.typehints.SerializedExtension
critical: bool
value: Any
django_ca.typehints.SerializedItem

TypeVar representing a serialized item for an iterable extension.

alias of TypeVar(‘SerializedItem’)

class django_ca.typehints.SerializedNameConstraints
excluded: List[str]
permitted: List[str]
class django_ca.typehints.SerializedNoticeReference
notice_numbers: List[int]
organization: str
class django_ca.typehints.SerializedNullExtension
critical: bool
class django_ca.typehints.SerializedPolicyConstraints
inhibit_policy_mapping: int
require_explicit_policy: int
class django_ca.typehints.SerializedPolicyInformation
policy_identifier: str
policy_qualifiers: Optional[List[Union[str, SerializedUserNotice]]]
class django_ca.typehints.SerializedProfile
cn_in_san: bool
description: str
extensions: Dict[str, Any]
subject: List[Tuple[str, str]]
class django_ca.typehints.SerializedSignedCertificateTimestamp

A dictionary with four keys: log_id, timestamp, type, version, values are all str.

log_id: str
timestamp: str
type: str
version: str
django_ca.typehints.SerializedSortableItem

TypeVar representing a serialized item that can be sorted (for OrderedSetExtension).

alias of TypeVar(‘SerializedSortableItem’, bound=SupportsLessThan)

class django_ca.typehints.SerializedUserNotice
explicit_text: str
notice_reference: SerializedNoticeReference
django_ca.typehints.SerializedValue

TypeVar representing a serialized value for an extension.

alias of TypeVar(‘SerializedValue’)

class django_ca.typehints.SupportsLessThan(*args, **kwargs)[source]

Protocol that specifies <, making something sortable.