oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1526199 - in /oltu/trunk: jose/jws/src/main/java/org/apache/oltu/jose/jws/io/JWSReader.java oauth-2.0/jwt/src/main/java/org/apache/oltu/oauth2/jwt/io/JWTReader.java
Date Wed, 25 Sep 2013 14:53:01 GMT
Author: simonetripodi
Date: Wed Sep 25 14:53:01 2013
New Revision: 1526199

URL: http://svn.apache.org/r1526199
Log:
OLTU-118 - Implement JWS of the JOSE working group

always trim JWS read line (same for JWT reader)

Modified:
    oltu/trunk/jose/jws/src/main/java/org/apache/oltu/jose/jws/io/JWSReader.java
    oltu/trunk/oauth-2.0/jwt/src/main/java/org/apache/oltu/oauth2/jwt/io/JWTReader.java

Modified: oltu/trunk/jose/jws/src/main/java/org/apache/oltu/jose/jws/io/JWSReader.java
URL: http://svn.apache.org/viewvc/oltu/trunk/jose/jws/src/main/java/org/apache/oltu/jose/jws/io/JWSReader.java?rev=1526199&r1=1526198&r2=1526199&view=diff
==============================================================================
--- oltu/trunk/jose/jws/src/main/java/org/apache/oltu/jose/jws/io/JWSReader.java (original)
+++ oltu/trunk/jose/jws/src/main/java/org/apache/oltu/jose/jws/io/JWSReader.java Wed Sep 25
14:53:01 2013
@@ -53,7 +53,7 @@ public final class JWSReader extends Abs
         String line = null;
         try {
             while ((line = reader.readLine()) != null) {
-                buffer.append(line);
+                buffer.append(line.trim());
             }
         } catch (IOException e) {
             // it cannot happen

Modified: oltu/trunk/oauth-2.0/jwt/src/main/java/org/apache/oltu/oauth2/jwt/io/JWTReader.java
URL: http://svn.apache.org/viewvc/oltu/trunk/oauth-2.0/jwt/src/main/java/org/apache/oltu/oauth2/jwt/io/JWTReader.java?rev=1526199&r1=1526198&r2=1526199&view=diff
==============================================================================
--- oltu/trunk/oauth-2.0/jwt/src/main/java/org/apache/oltu/oauth2/jwt/io/JWTReader.java (original)
+++ oltu/trunk/oauth-2.0/jwt/src/main/java/org/apache/oltu/oauth2/jwt/io/JWTReader.java Wed
Sep 25 14:53:01 2013
@@ -57,7 +57,7 @@ public final class JWTReader extends Abs
         String line = null;
         try {
             while ((line = reader.readLine()) != null) {
-                buffer.append(line);
+                buffer.append(line.trim());
             }
         } catch (IOException e) {
             // it cannot happen



Mime
View raw message