Search in sources :

Example 1 with ECPrivateKey

use of de.flexiprovider.ec.keys.ECPrivateKey in project core by jcryptool.

the class ECPrivateKeyContentProvider method getAlgorithmElements.

@Override
protected List<TableEntry> getAlgorithmElements(Object inputElement) {
    List<TableEntry> paramElements = new ArrayList<TableEntry>();
    try {
        ECPrivateKey key = (ECPrivateKey) inputElement;
        if (key == null)
            return null;
        paramElements.add(new TableEntry(Messages.ContentProvider_s, key.getS().toString()));
        paramElements.addAll(getParameters(key));
    } catch (ClassCastException e) {
        return null;
    }
    return paramElements;
}
Also used : TableEntry(org.jcryptool.crypto.keystore.ui.dialogs.TableEntry) ECPrivateKey(de.flexiprovider.ec.keys.ECPrivateKey) ArrayList(java.util.ArrayList)

Aggregations

ECPrivateKey (de.flexiprovider.ec.keys.ECPrivateKey)1 ArrayList (java.util.ArrayList)1 TableEntry (org.jcryptool.crypto.keystore.ui.dialogs.TableEntry)1