[java-idp-plugin-totp] branch main updated: Fix Build

Rod Widdowson rdw at steadingsoftware.com
Mon Sep 7 12:50:05 UTC 2020


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

rdw pushed a commit to branch main
in repository java-idp-plugin-totp.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-totp.git;a=commit;h=963f93d6566f92a6e6d35e55fe7f10e7eb2d1b49

The following commit(s) were added to refs/heads/main by this push:
       new  963f93d   Fix Build
963f93d is described below

commit 963f93d6566f92a6e6d35e55fe7f10e7eb2d1b49
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Sep 7 13:50:00 2020 +0100

    Fix Build
---
 .../plugin/totp/impl/TOTPAuthenticatorArguments.java    | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/totp-impl/src/main/java/net/shibboleth/idp/plugin/totp/impl/TOTPAuthenticatorArguments.java b/totp-impl/src/main/java/net/shibboleth/idp/plugin/totp/impl/TOTPAuthenticatorArguments.java
index a8d19cf..c4f05d0 100644
--- a/totp-impl/src/main/java/net/shibboleth/idp/plugin/totp/impl/TOTPAuthenticatorArguments.java
+++ b/totp-impl/src/main/java/net/shibboleth/idp/plugin/totp/impl/TOTPAuthenticatorArguments.java
@@ -21,9 +21,13 @@ import java.io.PrintStream;
 
 import javax.annotation.Nullable;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 import com.beust.jcommander.Parameter;
 
 import net.shibboleth.ext.spring.cli.AbstractCommandLineArguments;
+import net.shibboleth.idp.cli.DataSealerArguments;
 import net.shibboleth.utilities.java.support.annotation.constraint.NotEmpty;
 import net.shibboleth.utilities.java.support.codec.Base32Support;
 import net.shibboleth.utilities.java.support.codec.DecodingException;
@@ -52,7 +56,18 @@ public class TOTPAuthenticatorArguments extends AbstractCommandLineArguments {
     @Nullable private byte[] seed;
     
     /** Token code to verify. */
-    @Nullable private Integer tokenCode; 
+    @Nullable private Integer tokenCode;
+    
+    /** The Log. */
+    @Nullable private Logger log;
+
+    /** {@inheritDoc} */
+    public Logger getLog() {
+        if (log == null) {
+            log = LoggerFactory.getLogger(DataSealerArguments.class);
+        }
+        return log;
+    }
     
     /**
      * Get name of {@link TOTPAuthenticator} bean to access.

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


More information about the commits mailing list