зеркало из https://github.com/mozilla/gecko-dev.git
implement some methods in support of java.security.Key.
This commit is contained in:
Родитель
e3bf596343
Коммит
a62c7231f1
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче