use of de.flexiprovider.ec.keys.ECPublicKey in project core by jcryptool.
the class ECPublicKeyContentProvider method getAlgorithmElements.
@Override
protected List<TableEntry> getAlgorithmElements(Object inputElement) {
List<TableEntry> paramElements = new ArrayList<TableEntry>();
try {
ECPublicKey key = (ECPublicKey) inputElement;
if (key == null)
return null;
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_w, "" + key.getW()));
// $NON-NLS-2$
paramElements.add(new TableEntry(Messages.ContentProvider_encodedw, "" + key.getEncodedW()));
paramElements.addAll(getParameters(key));
} catch (ClassCastException e) {
return null;
} catch (InvalidKeyException e) {
return null;
}
return paramElements;
}
Aggregations