public interface EcPrivateJwk extends PrivateJwk<ECPrivateKey,ECPublicKey,EcPublicJwk>
ECPrivateKey
as defined by the JWA (RFC 7518) specification sections on
Parameters for Elliptic Curve Keys and
Parameters for Elliptic Curve Private 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 ECPrivateKey
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 ...
toKeyPair, toPublicJwk
getPublicKeyUse
getAlgorithm, getOperations, getType, thumbprint, thumbprint, toKey
getId
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
getX509Chain, getX509Sha1Thumbprint, getX509Sha256Thumbprint, getX509Url
Copyright © 2014–2023 jsonwebtoken.io. All rights reserved.