Search in sources :

Example 1 with DSAPrivateKey

use of de.flexiprovider.core.dsa.interfaces.DSAPrivateKey in project core by jcryptool.

the class DSAPrivateKeyContentProvider method getAlgorithmElements.

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

Aggregations

DSAPrivateKey (de.flexiprovider.core.dsa.interfaces.DSAPrivateKey)1 ArrayList (java.util.ArrayList)1 TableEntry (org.jcryptool.crypto.keystore.ui.dialogs.TableEntry)1