Search in sources :

Example 1 with DSAPublicKey

use of de.flexiprovider.core.dsa.DSAPublicKey in project core by jcryptool.

the class DSAPublicKeyContentProvider method getAlgorithmElements.

@Override
protected List<TableEntry> getAlgorithmElements(Object inputElement) {
    List<TableEntry> paramElements = new ArrayList<TableEntry>();
    try {
        DSAPublicKey key = (DSAPublicKey) inputElement;
        if (key == null)
            return null;
        paramElements.add(new TableEntry(Messages.ContentProvider_valuey, key.getValueY().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) DSAPublicKey(de.flexiprovider.core.dsa.DSAPublicKey)

Aggregations

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