package
4.0.5
Repository: https://github.com/jinmukeji/plat-pkg.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

CreateClaims 根据 issuer 与过期时间间隔创建一个 JWT Claims.
No description provided by the author
LoadRSAPrivateKey 从私钥的字节序列中加载 RSA 私钥.
LoadRSAPrivateKeyFromPEM 从 PEM 私钥文件 keyFile 与密码文件 passFile 中加载 RSA 私钥.
LoadRSAPublicKey 从字节序列中加载 RSA 公钥.
LoadRSAPublicKeyFromPEM 从 PEM 公钥文件 file 中加载 RSA 公钥.
RS256SignJWT 使用 RS256 算法对 claims 进行签名.
RS512SignJWT 使用 RS512 算法对 claims 进行签名.
RSAVerifyCustomJWT 使用 RSA 算法 (RS256/RS384/RS512) 对包含自定义 Claims 的 JWT Token 进行验证。.
RSAVerifyJWT 使用 RSA 算法 (RS256/RS384/RS512) 对 JWT Token 进行验证。.
RSAVerifyJWTWithKid 使用 RSA 算法 (RS256/RS384/RS512) 对 JWT Token 进行验证。.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

HMACVerifyOption 验证参数.
KidVerifyOption 验证参数.
StandardClaims is a wrapper for jwt.StandardClaims.
VerifyOption 验证参数.

# Interfaces

No description provided by the author

# Type aliases

GetPublicKeyByKidFunc 根据 kid 获取一个 rsa.PublicKey.
GetPublicKeyFunc 根据 iss 获取一个 rsa.PublicKey.