Search in sources :

Example 1 with GMSSPrivateKey

use of de.flexiprovider.pqc.hbc.gmss.GMSSPrivateKey in project core by jcryptool.

the class GMSSPrivateKeyContentProvider method getAlgorithmElements.

@Override
protected List<TableEntry> getAlgorithmElements(Object inputElement) {
    List<TableEntry> paramElements = new ArrayList<TableEntry>();
    try {
        GMSSPrivateKey key = (GMSSPrivateKey) inputElement;
        if (key == null)
            return null;
        paramElements.add(new TableEntry(Messages.ContentProvider_detailedname, Arrays.toString(key.getName())));
    } catch (ClassCastException e) {
        return null;
    }
    return paramElements;
}
Also used : TableEntry(org.jcryptool.crypto.keystore.ui.dialogs.TableEntry) ArrayList(java.util.ArrayList) GMSSPrivateKey(de.flexiprovider.pqc.hbc.gmss.GMSSPrivateKey)

Aggregations

GMSSPrivateKey (de.flexiprovider.pqc.hbc.gmss.GMSSPrivateKey)1 ArrayList (java.util.ArrayList)1 TableEntry (org.jcryptool.crypto.keystore.ui.dialogs.TableEntry)1