pyeudiw.jwk.schemas package
Submodules
pyeudiw.jwk.schemas.public module
- class pyeudiw.jwk.schemas.public.ECJwkSchema(*, kid: str | None, use: Literal['sig', 'enc'] | None = None, kty: Literal['EC'], crv: Literal['P-256', 'P-384', 'P-521', 'brainpoolP256r1', 'brainpoolP384r1', 'brainpoolP512r1'], x: str, y: str)[source]
Bases:
JwkBaseModel- crv: Literal['P-256', 'P-384', 'P-521', 'brainpoolP256r1', 'brainpoolP384r1', 'brainpoolP512r1']
- kty: Literal['EC']
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- x: str
- y: str
- class pyeudiw.jwk.schemas.public.JwkBaseModel(*, kid: str | None, use: Literal['sig', 'enc'] | None = None)[source]
Bases:
BaseModel- kid: str | None
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- use: Literal['sig', 'enc'] | None
- class pyeudiw.jwk.schemas.public.JwkSchema(*, kid: str, kty: Literal['EC', 'RSA'], alg: Literal['ES256', 'ES384', 'ES512', 'PS256', 'PS384', 'PS512', 'RS256', 'RS384', 'RS512'] | None = None, use: Literal['sig', 'enc'] | None = None, n: str | None = None, e: str | None = None, x: str | None = None, y: str | None = None, crv: Literal['P-256', 'P-384', 'P-521', 'brainpoolP256r1', 'brainpoolP384r1', 'brainpoolP512r1'] | None = None)[source]
Bases:
BaseModel- alg: Annotated[Literal['ES256', 'ES384', 'ES512', 'PS256', 'PS384', 'PS512', 'RS256', 'RS384', 'RS512'] | None, FieldInfo(annotation=NoneType, required=True, validate_default=True)]
- crv: Annotated[Literal['P-256', 'P-384', 'P-521', 'brainpoolP256r1', 'brainpoolP384r1', 'brainpoolP512r1'] | None, FieldInfo(annotation=NoneType, required=True, validate_default=True)]
- e: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, validate_default=True)]
- kid: str
- kty: Literal['EC', 'RSA']
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- n: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, validate_default=True)]
- use: Annotated[Literal['sig', 'enc'] | None, FieldInfo(annotation=NoneType, required=True, validate_default=True)]
- x: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, validate_default=True)]
- y: Annotated[str | None, FieldInfo(annotation=NoneType, required=True, validate_default=True)]
- class pyeudiw.jwk.schemas.public.JwksSchema(*, keys: List[Annotated[ECJwkSchema | RSAJwkSchema, FieldInfo(annotation=NoneType, required=True, discriminator='kty')]])[source]
Bases:
BaseModel- keys: List[Annotated[ECJwkSchema | RSAJwkSchema, FieldInfo(annotation=NoneType, required=True, discriminator='kty')]]
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class pyeudiw.jwk.schemas.public.RSAJwkSchema(*, kid: str | None, use: Literal['sig', 'enc'] | None = None, kty: Literal['RSA'], n: str, e: str)[source]
Bases:
JwkBaseModel- e: str
- kty: Literal['RSA']
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- n: str