private void retrieveSecretKeys(List<String> list) {
        String line;
        boolean bNewKey = false;
        String  keyID   = null;
        for (String list1 : list) {
            line = list1;
            if (line.startsWith("sec")) {
                Pattern p = Pattern.compile("^.*/([^\\s]+).*");
                Matcher m = p.matcher(line);
                if (m.matches()) {
                    String str = m.group(1);
                    keyID = str;
                }
                bNewKey = true;
            }
            else if (line.startsWith("uid")) {
                if (bNewKey) {
                    Pattern p = Pattern.compile("uid\\s+(.+)");
                    Matcher m = p.matcher(line);
                    if (m.matches()) {
                        String str = m.group (1);
                        secretKeysMap.put(keyID, str);
                    }
                }
                bNewKey = false;
            }
        }
    }