django_ca.typehints - Type aliases

Various type aliases used in throughout django-ca.

class django_ca.typehints.BasicConstraintsBase() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
ca: bool
django_ca.typehints.ExtensionTypeTypeVar

A type variable for a ExtensionType instance.

alias of TypeVar(‘ExtensionTypeTypeVar’, bound=cryptography.x509.extensions.ExtensionType)

django_ca.typehints.IterableItem

TypeVar representing a value contained in an iterable extension.

alias of TypeVar(‘IterableItem’)

class django_ca.typehints.ParsableAuthorityInformationAccess() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
issuers: Optional[Iterable[Union[cryptography.x509.general_name.GeneralName, str]]]
ocsp: Optional[Iterable[Union[cryptography.x509.general_name.GeneralName, str]]]
class django_ca.typehints.ParsableAuthorityKeyIdentifierDict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
authority_cert_issuer: Iterable[str]
authority_cert_serial_number: Optional[int]
key_identifier: Optional[bytes]
class django_ca.typehints.ParsableBasicConstraints(**kwargs)[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() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
crl_issuer: Iterable[Union[cryptography.x509.general_name.GeneralName, str]]
full_name: Optional[Iterable[Union[cryptography.x509.general_name.GeneralName, str]]]
reasons: Iterable[Union[str, cryptography.x509.extensions.ReasonFlags]]
relative_name: Union[str, Iterable[Tuple[str, str]], cryptography.x509.name.RelativeDistinguishedName]
class django_ca.typehints.ParsableExtension() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
critical: bool
value: Any
django_ca.typehints.ParsableItem

TypeVar representing a parsable list item.

alias of TypeVar(‘ParsableItem’)

class django_ca.typehints.ParsableNameConstraints() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
excluded: Iterable[Union[cryptography.x509.general_name.GeneralName, str]]
permitted: Iterable[Union[cryptography.x509.general_name.GeneralName, str]]
class django_ca.typehints.ParsableNoticeReference() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
notice_numbers: Iterable[int]
organization: str
class django_ca.typehints.ParsablePolicyConstraints() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
inhibit_policy_mapping: int
require_explicit_policy: int
class django_ca.typehints.ParsablePolicyInformation() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
policy_identifier: Optional[Union[str, cryptography.x509.ObjectIdentifier]]
policy_qualifiers: Sequence[Union[str, cryptography.x509.UserNotice, django_ca.typehints.ParsableUserNotice]]
class django_ca.typehints.ParsableUserNotice() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
explicit_text: str
notice_reference: Union[cryptography.x509.extensions.NoticeReference, django_ca.typehints.ParsableNoticeReference]
django_ca.typehints.ParsableValue

A value that can be parsed to a valid extension.

alias of TypeVar(‘ParsableValue’)

class django_ca.typehints.SerializedAuthorityInformationAccess() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
issuers: List[str]
ocsp: List[str]
class django_ca.typehints.SerializedAuthorityKeyIdentifier() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
authority_cert_issuer: List[str]
authority_cert_serial_number: int
key_identifier: str
class django_ca.typehints.SerializedBasicConstraints(**kwargs)[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() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
crl_issuer: List[str]
full_name: List[str]
reasons: List[str]
relative_name: str
class django_ca.typehints.SerializedDistributionPoints() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
critical: bool
value: List[django_ca.typehints.SerializedDistributionPoint]
class django_ca.typehints.SerializedExtension() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
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() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
excluded: List[str]
permitted: List[str]
class django_ca.typehints.SerializedNoticeReference() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
notice_numbers: List[int]
organization: str
class django_ca.typehints.SerializedNullExtension() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
critical: bool
class django_ca.typehints.SerializedPolicyConstraints() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
inhibit_policy_mapping: int
require_explicit_policy: int
class django_ca.typehints.SerializedPolicyInformation() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
policy_identifier: str
policy_qualifiers: Optional[List[Union[str, django_ca.typehints.SerializedUserNotice]]]
class django_ca.typehints.SerializedProfile() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
cn_in_san: bool
description: str
extensions: Dict[str, Any]
subject: Dict[str, Union[str, List[str]]]
class django_ca.typehints.SerializedSignedCertificateTimestamp() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)

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=django_ca.typehints.SupportsLessThan)

class django_ca.typehints.SerializedUserNotice() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list.  For example:  dict(one=1, two=2)
explicit_text: str
notice_reference: django_ca.typehints.SerializedNoticeReference
django_ca.typehints.SerializedValue

TypeVar representing a serialized value for an extension.

alias of TypeVar(‘SerializedValue’)

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

Protocol that specifies <, making something sortable.