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
str
orbytes
.
- 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
SecretValue
object with a secret value of typestr
orbytes
.
- abstract get_obscured() SecretT ¶
Return the hidden representation of the secret value.
- Raises:
NotImplementedError – Always raised to enforce implementation in subclasses.