Package com.auth0.jwk
Class Jwk
java.lang.Object
com.auth0.jwk.Jwk
Represents a JSON Web Key (JWK) used to verify the signature of JWTs
-
Constructor Summary
ConstructorDescriptionJwk
(String id, String type, String algorithm, String usage, String operations, String certificateUrl, List<String> certificateChain, String certificateThumbprint, Map<String, Object> additionalAttributes) Deprecated.The specification states that the 'key_ops' (operations) parameter contains an array value.Jwk
(String id, String type, String algorithm, String usage, List<String> operations, String certificateUrl, List<String> certificateChain, String certificateThumbprint, Map<String, Object> additionalAttributes) Creates a new Jwk -
Method Summary
-
Constructor Details
-
Jwk
public Jwk(String id, String type, String algorithm, String usage, List<String> operations, String certificateUrl, List<String> certificateChain, String certificateThumbprint, Map<String, Object> additionalAttributes) Creates a new Jwk- Parameters:
id
- kidtype
- ktyalgorithm
- algusage
- useoperations
- key_opscertificateUrl
- x5ucertificateChain
- x5ccertificateThumbprint
- x5tadditionalAttributes
- additional attributes not part of the standard ones
-
Jwk
@Deprecated public Jwk(String id, String type, String algorithm, String usage, String operations, String certificateUrl, List<String> certificateChain, String certificateThumbprint, Map<String, Object> additionalAttributes) Deprecated.The specification states that the 'key_ops' (operations) parameter contains an array value. UseJwk(String, String, String, String, List, String, List, String, Map)
Creates a new Jwk- Parameters:
id
-type
-algorithm
-usage
-operations
-certificateUrl
-certificateChain
-certificateThumbprint
-additionalAttributes
-
-
-
Method Details
-
fromValues
-
getId
-
getType
-
getAlgorithm
-
getUsage
-
getOperations
-
getOperationsAsList
-
getCertificateUrl
-
getCertificateChain
-
getCertificateThumbprint
-
getAdditionalAttributes
-
getPublicKey
- Returns:
- a public key
- Throws:
InvalidPublicKeyException
- if the key cannot be built or the key type is not a supported type of RSA or EC
-
toString
-