From 273e3f23ea0d407e7f5cd6362e238e78f5d73fe6 Mon Sep 17 00:00:00 2001 From: "nicolson%netscape.com" Date: Wed, 28 Aug 2002 17:57:20 +0000 Subject: [PATCH] useful getAlgorithm method. --- security/jss/org/mozilla/jss/pkcs11/PK11PubKey.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/security/jss/org/mozilla/jss/pkcs11/PK11PubKey.java b/security/jss/org/mozilla/jss/pkcs11/PK11PubKey.java index 0b66ec02406..2860d6dedce 100644 --- a/security/jss/org/mozilla/jss/pkcs11/PK11PubKey.java +++ b/security/jss/org/mozilla/jss/pkcs11/PK11PubKey.java @@ -54,6 +54,10 @@ public class PK11PubKey extends org.mozilla.jss.pkcs11.PK11Key public native KeyType getKeyType(); + public String getAlgorithm() { + return getKeyType().toString(); + } + /** * Creates a PK11PubKey from its raw form. The raw form is a DER encoding * of the public key. For example, this is what is stored in a