JsonWebKey interface
屬性
| crv | 橢圓曲線名稱。 如需有效值,請參閱 KeyCurveName。 可能的值包括:'P-256'、'P-384'、'P-521'、'P-256K' |
| d | RSA 私人指數或 EC 私鑰的 D 元件。 |
| dp | RSA 私密金鑰參數。 |
| dq | RSA 私密金鑰參數。 |
| e | RSA 公用指數。 |
| k | 對稱金鑰。 |
| key |
Json Web 金鑰作業。 如需可能密鑰作業的詳細資訊,請參閱 KeyOperation。 |
| kid | 金鑰識別碼。 |
| kty | JsonWebKey 金鑰類型 (kty),如 https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40中所定義。 可能的值包括:'EC'、'EC-HSM'、'RSA'、'RSA-HSM'、'oct'、“oct-HSM” |
| n | RSA 模數。 |
| p | RSA 秘密黃金。 |
| q | RSA 秘密質素, |
| qi | RSA 私密金鑰參數。 |
| t | HSM 令牌,與「攜帶您自己的密鑰」搭配使用。 |
| x | EC 公鑰的 X 元件。 |
| y | EC 公鑰的 Y 元件。 |
屬性詳細資料
crv
橢圓曲線名稱。 如需有效值,請參閱 KeyCurveName。 可能的值包括:'P-256'、'P-384'、'P-521'、'P-256K'
crv?: string
屬性值
string
d
RSA 私人指數或 EC 私鑰的 D 元件。
d?: Uint8Array
屬性值
Uint8Array
dp
RSA 私密金鑰參數。
dp?: Uint8Array
屬性值
Uint8Array
dq
RSA 私密金鑰參數。
dq?: Uint8Array
屬性值
Uint8Array
e
RSA 公用指數。
e?: Uint8Array
屬性值
Uint8Array
k
對稱金鑰。
k?: Uint8Array
屬性值
Uint8Array
keyOps
Json Web 金鑰作業。 如需可能密鑰作業的詳細資訊,請參閱 KeyOperation。
keyOps?: string[]
屬性值
string[]
kid
金鑰識別碼。
kid?: string
屬性值
string
kty
JsonWebKey 金鑰類型 (kty),如 https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40中所定義。 可能的值包括:'EC'、'EC-HSM'、'RSA'、'RSA-HSM'、'oct'、“oct-HSM”
kty?: string
屬性值
string
n
RSA 模數。
n?: Uint8Array
屬性值
Uint8Array
p
RSA 秘密黃金。
p?: Uint8Array
屬性值
Uint8Array
q
RSA 秘密質素,p < q。
q?: Uint8Array
屬性值
Uint8Array
qi
RSA 私密金鑰參數。
qi?: Uint8Array
屬性值
Uint8Array
t
HSM 令牌,與「攜帶您自己的密鑰」搭配使用。
t?: Uint8Array
屬性值
Uint8Array
x
EC 公鑰的 X 元件。
x?: Uint8Array
屬性值
Uint8Array
y
EC 公鑰的 Y 元件。
y?: Uint8Array
屬性值
Uint8Array