changeset 808:b3176fd168bf

replace use of jetty.util.B64Code with java.util.Base64
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 08 Sep 2016 16:13:27 -0600
parents 947b11aa3157
children 09d518d313b7
files src/luan/modules/http/AuthenticationHandler.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/http/AuthenticationHandler.java	Wed Sep 07 23:26:12 2016 -0600
+++ b/src/luan/modules/http/AuthenticationHandler.java	Thu Sep 08 16:13:27 2016 -0600
@@ -1,11 +1,11 @@
 package luan.modules.http;
 
 import java.io.IOException;
+import java.util.Base64;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import org.eclipse.jetty.server.Request;
 import org.eclipse.jetty.server.handler.AbstractHandler;
-import org.eclipse.jetty.util.B64Code;
 
 
 public class AuthenticationHandler extends AbstractHandler {
@@ -42,7 +42,7 @@
 			throw new RuntimeException("auth = "+auth);
 		if( !a[0].equals("Basic") )
 			throw new RuntimeException("auth = "+auth);
-		auth = new String(B64Code.decode(a[1]));
+		auth = new String(Base64.getDecoder().decode(a[1]));
 		a = auth.split(":");
 		if( a.length != 2 )
 			throw new RuntimeException("auth = "+auth);