[java-identity-provider] 01/02: IDP-1300 Move all the java-installer code into impl

Rod Widdowson rdw at steadingsoftware.com
Fri Jun 8 09:29:01 EDT 2018


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=e5e22b694eda168d02adb427919c4721b02fffb2

commit e5e22b694eda168d02adb427919c4721b02fffb2
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Fri Jun 8 14:08:00 2018 +0100

    IDP-1300  Move all the java-installer code into impl
    
    https://issues.shibboleth.net/jira/browse/IDP-1300
    
    Previous checking didn't add deprecation warning for the password prompter
    and as a result the requires change to the install ant script didn't happen.
---
 idp-distribution/src/main/resources/bin/build.xml                 | 4 ++--
 .../java/net/shibboleth/idp/installer/ant/PasswordHandler.java    | 8 ++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/idp-distribution/src/main/resources/bin/build.xml b/idp-distribution/src/main/resources/bin/build.xml
index 06b214b..8a69f54 100644
--- a/idp-distribution/src/main/resources/bin/build.xml
+++ b/idp-distribution/src/main/resources/bin/build.xml
@@ -88,7 +88,7 @@
         <TGT>getkeystorepassword</TGT>
         <fail if="idp.noprompt">Input needed, silence demanded</fail>
         <input message="Backchannel PKCS12 Password: " addproperty="idp.keystore.password">
-            <handler classname="net.shibboleth.idp.installer.ant.PasswordHandler"/>
+            <handler classname="net.shibboleth.idp.installer.ant.impl.PasswordHandler"/>
         </input>
     </target>
 
@@ -96,7 +96,7 @@
         <TGT>getsealerpassword</TGT>
         <fail if="idp.noprompt">Input needed, silence demanded</fail>
         <input message="Cookie Encryption Key Password: " addproperty="idp.sealer.password">
-            <handler classname="net.shibboleth.idp.installer.ant.PasswordHandler"/>
+            <handler classname="net.shibboleth.idp.installer.ant.impl.PasswordHandler"/>
         </input>
         <echo file="${idp.merge.properties}" append="yes">
             idp.sealer.storePassword=${idp.sealer.password}
diff --git a/idp-installer/src/main/java/net/shibboleth/idp/installer/ant/PasswordHandler.java b/idp-installer/src/main/java/net/shibboleth/idp/installer/ant/PasswordHandler.java
index cc721bb..63ecc5a 100644
--- a/idp-installer/src/main/java/net/shibboleth/idp/installer/ant/PasswordHandler.java
+++ b/idp-installer/src/main/java/net/shibboleth/idp/installer/ant/PasswordHandler.java
@@ -22,6 +22,14 @@ import org.apache.tools.ant.input.SecureInputHandler;
 
 /** Ant helper class to ask for passwords, rejecting zero length passwords and asking for confirmation. */
 @Deprecated public class PasswordHandler extends SecureInputHandler {
+    
+    /**
+     * Constructor.
+     *
+     */
+    public PasswordHandler() {
+        System.console().printf("Calling Deprecated class " + this.getClass().getName() + "\n");
+    }
 
     /** {@inheritDoc} */
     @Override

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list