public interface EcPublicJwk extends PublicJwk<ECPublicKey>
ECPublicKey as defined by the JWA (RFC 7518) specification sections on
Parameters for Elliptic Curve Keys and
Parameters for Elliptic Curve Public Keys.
Note that the various EC-specific properties are not available as separate dedicated getter methods, as most Java
applications should rarely, if ever, need to access these individual key properties since they typically represent
internal key material and/or serialization details. If you need to access these key properties, it is usually
recommended to obtain the corresponding ECPublicKey instance returned by Jwk.toKey() and
query that instead.
Even so, because these properties exist and are readable by nature of every JWK being a
Map, they are still accessible via the standard Map get method
using an appropriate JWK parameter id, for example:
jwk.get("x");
jwk.get("y");
// ... etc ...getPublicKeyUsegetAlgorithm, getOperations, getType, thumbprint, thumbprint, toKeygetIdclear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, valuesgetX509Chain, getX509Sha1Thumbprint, getX509Sha256Thumbprint, getX509UrlCopyright © 2014–2023 jsonwebtoken.io. All rights reserved.