summaryrefslogtreecommitdiffstats
path: root/jwcrypto/jwk.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-03-08 17:26:04 -0400
committerSimo Sorce <simo@redhat.com>2015-03-09 01:31:45 -0400
commit7a131df18b4cbaa78929df1a1419f25898489815 (patch)
tree0081387fe7475825170b10307d8e329a5f3e25b1 /jwcrypto/jwk.py
parent167e8a3c21cbd0a38887e6c29824aa5ead6a6b10 (diff)
downloadjwcrypto-7a131df18b4cbaa78929df1a1419f25898489815.tar.gz
jwcrypto-7a131df18b4cbaa78929df1a1419f25898489815.tar.xz
jwcrypto-7a131df18b4cbaa78929df1a1419f25898489815.zip
Add more checks, algorithms, tests
Diffstat (limited to 'jwcrypto/jwk.py')
-rw-r--r--jwcrypto/jwk.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/jwcrypto/jwk.py b/jwcrypto/jwk.py
index f689930..8583ff1 100644
--- a/jwcrypto/jwk.py
+++ b/jwcrypto/jwk.py
@@ -155,6 +155,10 @@ class JWK(object):
return json.dumps(d)
@property
+ def key_type(self):
+ return self._params.get('kty', None)
+
+ @property
def key_id(self):
return self._params.get('kid', None)