Changeset cdd58f1 for apps/jetty


Ignore:
Timestamp:
Apr 29, 2018 3:46:30 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
c73b5b9
Parents:
4d09e50
Message:

SSL Wizard: Change cert type, export cert, show in cert helper,
relay keystore password via POST

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/jetty/java/src/net/i2p/jetty/JettyXmlConfigurationParser.java

    r4d09e50 rcdd58f1  
    190190     */
    191191    public static String obfuscate(String s) {
     192        if (s.startsWith("OBF:"))
     193            return s;
    192194        return Password.obfuscate(s);
    193195    }
     196
     197    /**
     198     *  De-Obfuscate a password from the XML
     199     *  @param s a string starting with "OBF:"
     200     */
     201    public static String deobfuscate(String s) {
     202        if (!s.startsWith("OBF:"))
     203            return s;
     204        return Password.deobfuscate(s);
     205    }
    194206}
Note: See TracChangeset for help on using the changeset viewer.