oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asa...@apache.org
Subject svn commit: r1732907 - /oltu/trunk/jose/jwe/src/main/java/org/apache/oltu/jose/jwe/io/JWEWriter.java
Date Mon, 29 Feb 2016 14:47:35 GMT
Author: asanso
Date: Mon Feb 29 14:47:35 2016
New Revision: 1732907

URL: http://svn.apache.org/viewvc?rev=1732907&view=rev
Log:
OLTU-80 - Implement JWE support for JWT

Modified:
    oltu/trunk/jose/jwe/src/main/java/org/apache/oltu/jose/jwe/io/JWEWriter.java

Modified: oltu/trunk/jose/jwe/src/main/java/org/apache/oltu/jose/jwe/io/JWEWriter.java
URL: http://svn.apache.org/viewvc/oltu/trunk/jose/jwe/src/main/java/org/apache/oltu/jose/jwe/io/JWEWriter.java?rev=1732907&r1=1732906&r2=1732907&view=diff
==============================================================================
--- oltu/trunk/jose/jwe/src/main/java/org/apache/oltu/jose/jwe/io/JWEWriter.java (original)
+++ oltu/trunk/jose/jwe/src/main/java/org/apache/oltu/jose/jwe/io/JWEWriter.java Mon Feb 29
14:47:35 2016
@@ -28,14 +28,11 @@ public final class JWEWriter extends Tok
 
     @Override
     protected String writeBody(JWE token) {
-        return "";
+        return token.getEncryptedKey();
     }
 
     @Override
     protected String writeSignature(JWE token) {
-        StringBuilder sb = new StringBuilder();
-        sb.append(token.getEncryptedKey()).append(".").append(token.getContentEncryption());
-        return sb.toString();
+        return token.getContentEncryption();
     }
-
 }



Mime
View raw message