joserfc の API リファレンス
joserfc (authlib/joserfc) の公開 API 61 件 —— クラス 36、関数 5、メソッド 20。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: authlib/joserfc
| 種別 | 件数 |
|---|---|
| クラス | 36 |
| 関数 | 5 |
| メソッド | 20 |
API 一覧
class
src.joserfc._keys.JWKRegistryA registry for JWK to record ``joserfc`` supported key types.
class
src.joserfc._rfc7515.model.CompactSignatureJSON Web Signature object for compact mode.
method
src.joserfc._rfc7515.model.CompactSignature.headers() -> HeaderReturns protected header values in dict.
class
src.joserfc._rfc7515.model.HeaderMemberA header member of the JSON signature.
class
src.joserfc._rfc7515.model.JWSAlgModelInterface for JWS algorithm.
method
src.joserfc._rfc7515.model.JWSAlgModel.sign(msg:bytes, key:Any) -> bytesSign the text msg with a private/sign key.
method
src.joserfc._rfc7515.model.JWSAlgModel.verify(msg:bytes, sig:bytes, key:Any) -> boolVerify the signature of text msg with a public/verify key.
class
src.joserfc._rfc7516.models.CompactEncryptionAn object to represent the JWE Compact Serialization.
method
src.joserfc._rfc7516.models.CompactEncryption.attach_recipient(key:Key, header:Header | None=None) -> NoneAdd a recipient to the JWE Compact Serialization.
method
src.joserfc._rfc7516.models.CompactEncryption.headers() -> HeaderReturns the protected header values in dict.
method
src.joserfc._rfc7517.models.BaseKey.alg() -> str | NoneThe "alg" value of the JSON Web Key.
method
src.joserfc._rfc7517.models.BaseKey.as_dict(private:bool=False, **params:t.Any) -> DictKeyOutput this key to a JWK format (in dict).
method
src.joserfc._rfc7517.models.BaseKey.check_alg(alg:str) -> NoneCheck if this key supports the given "alg".
method
src.joserfc._rfc7517.models.BaseKey.check_key_op(operation:str) -> NoneCheck if the given key_op is supported by this key.
method
src.joserfc._rfc7517.models.BaseKey.check_use(use:str) -> NoneCheck if this key supports the given "use".
method
src.joserfc._rfc7517.models.BaseKey.dict_value() -> DictKeyProperty of the Key in Dict (JSON).
method
src.joserfc._rfc7517.models.BaseKey.ensure_kid() -> NoneEnsure this key has a ``kid``.
method
src.joserfc._rfc7517.models.BaseKey.kid() -> str | NoneThe "kid" value of the JSON Web Key.
method
src.joserfc._rfc7517.models.SymmetricKey.is_private() -> boolA symmetric key will always be private.
method
src.joserfc._rfc7517.models.SymmetricKey.private_key() -> bytesReturns the ``raw_value`` as the private key.
method
src.joserfc._rfc7517.models.SymmetricKey.public_key() -> bytesReturns the ``raw_value`` as the public key.
method
src.joserfc._rfc7517.models.SymmetricKey.raw_value() -> bytesThe raw key in bytes.
func
src.joserfc._rfc7517.pem.dump_pem_key(key:Any, encoding:Literal['PEM', 'DER'] | None=None, private:bool | None=False, password:Any | None=None) -> bytesExport key into PEM/DER format bytes.
class
src.joserfc._rfc7518.jws_algs.ESAlgorithmECDSA using SHA algorithms for JWS.
class
src.joserfc._rfc7518.jws_algs.HMACAlgorithmHMAC using SHA algorithms for JWS.
class
src.joserfc._rfc7518.jws_algs.RSAAlgorithmRSA using SHA algorithms for JWS.
class
src.joserfc._rfc7518.jws_algs.RSAPSSAlgorithmRSASSA-PSS using SHA algorithms for JWS.
class
src.joserfc._rfc7518.oct_key.OctKeyOctKey is a symmetric key, defined by RFC7518 Section 6.4.
class
src.joserfc._rfc7519.claims.BaseClaimsRegistryRequesting "claims" for JWT with the given conditions.
method
src.joserfc._rfc7519.claims.BaseClaimsRegistry.check_value(claim_name:str, value:Any) -> NoneValidates a given claim value based on predefined options.
method
src.joserfc._rfc7519.claims.BaseClaimsRegistry.essential_keys() -> set[str]Returns the essential claim names.
class
src.joserfc._rfc7519.claims.JWTClaimsRegistryA claims registry for validating JWT claims.
method
src.joserfc._rfc7519.claims.JWTClaimsRegistry.now() -> intReturns the current timestamp.
func
src.joserfc._rfc7519.claims.convert_claims(claims:Claims, encoder_cls:type[JSONEncoder] | None=None) -> bytesTurn claims into bytes payload.
class
src.joserfc._rfc8037.okp_key.OKPKeyKey class of the ``OKP`` key type.
func
src.joserfc._rfc9278.calculate_thumbprint_uri(value:dict[str, t.Any], digest_method:t.Literal['sha256', 'sha384', 'sha512']='sha256') -> strCalculate JWK thumbprint URI, defined by RFC9278.
class
src.joserfc.errors.BadSignatureErrorThis error is designed for JWS.
class
src.joserfc.errors.ClaimErrorThis a base error for JWT claims validation.
class
src.joserfc.errors.DecodeErrorThis error is designed for both JWS and JWE.
class
src.joserfc.errors.ExpiredTokenErrorThis error is designed for JWT.
class
src.joserfc.errors.InsecureClaimErrorThis error is designed for JWT.
class
src.joserfc.errors.InvalidClaimErrorThis error is designed for JWT.
class
src.joserfc.errors.InvalidEncryptionAlgorithmErrorThis error is designed for JWE.
class
src.joserfc.errors.InvalidExchangeKeyErrorThis error is designed for EC and OKP keys.
class
src.joserfc.errors.InvalidHeaderValueErrorRaised when the given header's value is invalid.
class
src.joserfc.errors.InvalidKeyCurveErrorThis error is designed for JWS.
class
src.joserfc.errors.InvalidKeyIdErrorThis error is designed for Key Set.
class
src.joserfc.errors.InvalidKeyLengthErrorThis error is designed for JWE.
class
src.joserfc.errors.InvalidPayloadErrorThis error is designed for JWT.
class
src.joserfc.errors.JoseErrorBase Exception for all errors in joserfc.
class
src.joserfc.errors.MissingAlgorithmErrorRaised when an algorithm ("alg") is missing.
class
src.joserfc.errors.MissingClaimErrorThis error is designed for JWT.
class
src.joserfc.errors.MissingEncryptionErrorThis error is designed for JWE.
class
src.joserfc.errors.MissingHeaderErrorThis error happens when the required header does not exist.
class
src.joserfc.errors.SecurityWarningBase class for warnings of security issues.
class
src.joserfc.errors.UnsupportedAlgorithmErrorThis error is designed for both JWS and JWE.
class
src.joserfc.errors.UnsupportedHeaderErrorRaised when an unsupported header is encountered.
func
src.joserfc.jwk.guess_key(key:KeyFlexible, obj:GuestProtocol, random:bool=False, use:Literal['sig', 'enc'] | None=None) -> KeyGuess key from a various sources.
func
src.joserfc.jws.serialize_compact(protected:Header, payload:bytes | str, private_key:KeyFlexible | None, algorithms:Collection[str] | None=None, registry:JWSRegistry | None=None) -> strGenerate a JWS Compact Serialization.
class
src.joserfc.registry.HeaderParameterDefine the header parameter for JWS and JWE.
class
src.joserfc.registry.KeyParameterDefine the key parameter for JWK.
この情報について
掲載しているシグネチャは authlib/joserfc の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。