secret_values#
- class litestar.datastructures.secret_values.SecretBytes#
Bases:
SecretValue[bytes]Represents a secret bytes value.
- class litestar.datastructures.secret_values.SecretString#
Bases:
SecretValue[str]Represents a secret string value.
- class litestar.datastructures.secret_values.SecretT#
Type that represents a secret value of type
strorbytes.
- class litestar.datastructures.secret_values.SecretValue#
-
Represents a secret value that can be of type str or bytes.
- __init__(secret_value: SecretT) None#
Initializes a
SecretValueobject with a secret value of typestrorbytes.
- abstractmethod get_obscured() SecretT#
Return the hidden representation of the secret value.
- Raises:
NotImplementedError – Always raised to enforce implementation in subclasses.