plaid2.model.jwk_public_key module

class plaid2.model.jwk_public_key.JwkPublicKey(*, crv: str, y: str, x: str, created_at: int, use: str, kid: str, alg: str, kty: str, expired_at: Optional[int] = None)[source]

Bases: BaseModel

alg: str

The alg member identifies the cryptographic algorithm family used with the key.

created_at: int

The timestamp when the key was created, in Unix time.

crv: str

The crv member identifies the cryptographic curve used with the key.

dict(**kwargs: Any) Dict[str, Any][source]

Return a dict representation of the object. Takes same keyword arguments as pydantic.BaseModel.dict

expired_at: Optional[int]

The timestamp when the key expired, in Unix time.

json(**kwargs: Any) str[source]

Return a json string representation of the object. Takes same keyword arguments as pydantic.BaseModel.json

kid: str

The kid (Key ID) member can be used to match a specific key. This can be used, for instance, to choose among a set of keys within the JWK during key rollover.

kty: str

The kty (key type) parameter identifies the cryptographic algorithm family used with the key, such as RSA or EC.

classmethod parse_obj(data: Any) JwkPublicKey[source]

Parse a dict into the object. Takes same keyword arguments as pydantic.BaseModel.parse_obj

classmethod parse_raw(b: Union[bytes, str], **kwargs: Any) JwkPublicKey[source]

Parse a json string into the object. Takes same keyword arguments as pydantic.BaseModel.parse_raw

use: str

The use (public key use) parameter identifies the intended use of the public key.

x: str

The x member contains the x coordinate for the elliptic curve point.

y: str

The y member contains the y coordinate for the elliptic curve point.