secret_values¶
- class litestar.datastructures.secret_values.SecretBytes[源代码]¶
基类:
SecretValue[bytes]Represents a secret bytes value.
- class litestar.datastructures.secret_values.SecretString[源代码]¶
基类:
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.
- 抛出:
NotImplementedError -- Always raised to enforce implementation in subclasses.