secret_values¶
- class litestar.datastructures.secret_values.SecretBytes[source]¶
Bases:
SecretValue[bytes]Represents a secret bytes value.
- class litestar.datastructures.secret_values.SecretString[source]¶
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[source]¶
-
Represents a secret value that can be of type str or bytes.
- __init__(secret_value: SecretT) None[source]¶
Initializes a
SecretValueobject with a secret value of typestrorbytes.
- abstractmethod get_obscured() SecretT[source]¶
Return the hidden representation of the secret value.
- Raises:
NotImplementedError – Always raised to enforce implementation in subclasses.