-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaces key discovery with well-known feature (#46)
Closes #43
- Loading branch information
Showing
13 changed files
with
349 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package rsakey | ||
|
||
// swagger:model jsonWebKeySet | ||
type swaggerJSONWebKeySet struct { | ||
// The value of the "keys" parameter is an array of JWK values. By | ||
// default, the order of the JWK values within the array does not imply | ||
// an order of preference among them, although applications of JWK Sets | ||
// can choose to assign a meaning to the order for their purposes, if | ||
// desired. | ||
Keys []swaggerJSONWebKey `json:"keys"` | ||
} | ||
|
||
// swagger:model jsonWebKey | ||
type swaggerJSONWebKey struct { | ||
// The "use" (public key use) parameter identifies the intended use of | ||
// the public key. The "use" parameter is employed to indicate whether | ||
// a public key is used for encrypting data or verifying the signature | ||
// on data. Values are commonly "sig" (signature) or "enc" (encryption). | ||
Use string `json:"use,omitempty"` | ||
|
||
// The "kty" (key type) parameter identifies the cryptographic algorithm | ||
// family used with the key, such as "RSA" or "EC". "kty" values should | ||
// either be registered in the IANA "JSON Web Key Types" registry | ||
// established by [JWA] or be a value that contains a Collision- | ||
// Resistant Name. The "kty" value is a case-sensitive string. | ||
Kty string `json:"kty,omitempty"` | ||
|
||
// The "kid" (key ID) parameter is used to match a specific key. This | ||
// is used, for instance, to choose among a set of keys within a JWK Set | ||
// during key rollover. The structure of the "kid" value is | ||
// unspecified. When "kid" values are used within a JWK Set, different | ||
// keys within the JWK Set SHOULD use distinct "kid" values. (One | ||
// example in which different keys might use the same "kid" value is if | ||
// they have different "kty" (key type) values but are considered to be | ||
// equivalent alternatives by the application using them.) The "kid" | ||
// value is a case-sensitive string. | ||
Kid string `json:"kid,omitempty"` | ||
|
||
Crv string `json:"crv,omitempty"` | ||
|
||
// The "alg" (algorithm) parameter identifies the algorithm intended for | ||
// use with the key. The values used should either be registered in the | ||
// IANA "JSON Web Signature and Encryption Algorithms" registry | ||
// established by [JWA] or be a value that contains a Collision- | ||
// Resistant Name. | ||
Alg string `json:"alg,omitempty"` | ||
|
||
// The "x5c" (X.509 certificate chain) parameter contains a chain of one | ||
// or more PKIX certificates [RFC5280]. The certificate chain is | ||
// represented as a JSON array of certificate value strings. Each | ||
// string in the array is a base64-encoded (Section 4 of [RFC4648] -- | ||
// not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. | ||
// The PKIX certificate containing the key value MUST be the first | ||
// certificate. | ||
X5c []string `json:"x5c,omitempty"` | ||
|
||
K string `json:"k,omitempty"` | ||
X string `json:"x,omitempty"` | ||
Y string `json:"y,omitempty"` | ||
N string `json:"n,omitempty"` | ||
E string `json:"e,omitempty"` | ||
|
||
D string `json:"d,omitempty"` | ||
P string `json:"p,omitempty"` | ||
Q string `json:"q,omitempty"` | ||
Dp string `json:"dp,omitempty"` | ||
Dq string `json:"dq,omitempty"` | ||
Qi string `json:"qi,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# JsonWebKey | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**Alg** | **string** | The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. | [optional] [default to null] | ||
**Crv** | **string** | | [optional] [default to null] | ||
**D** | **string** | | [optional] [default to null] | ||
**Dp** | **string** | | [optional] [default to null] | ||
**Dq** | **string** | | [optional] [default to null] | ||
**E** | **string** | | [optional] [default to null] | ||
**K** | **string** | | [optional] [default to null] | ||
**Kid** | **string** | The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string. | [optional] [default to null] | ||
**Kty** | **string** | The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string. | [optional] [default to null] | ||
**N** | **string** | | [optional] [default to null] | ||
**P** | **string** | | [optional] [default to null] | ||
**Q** | **string** | | [optional] [default to null] | ||
**Qi** | **string** | | [optional] [default to null] | ||
**Use** | **string** | The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption). | [optional] [default to null] | ||
**X** | **string** | | [optional] [default to null] | ||
**X5c** | **[]string** | The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate. | [optional] [default to null] | ||
**Y** | **string** | | [optional] [default to null] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# JsonWebKeySet | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**Keys** | [**[]JsonWebKey**](jsonWebKey.md) | The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired. | [optional] [default to null] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
Oops, something went wrong.