implement some methods in support of java.security.Key.

This commit is contained in:
nicolson%netscape.com 2002-05-07 20:33:23 +00:00
Родитель e3bf596343
Коммит a62c7231f1
1 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -80,18 +80,19 @@ public final class PK11SymKey implements SymmetricKey {
public native KeyType getKeyType();
public String getAlgorithm() {
// XXX !!!
return "";
return getKeyType().toString();
}
public byte[] getEncoded() {
// XXX !!!
return new byte[0];
try {
return getKeyData();
} catch(SymmetricKey.NotExtractableException nee) {
return null;
}
}
public String getFormat() {
// XXX !!!
return "";
return "RAW";
}
}