incubator-amber-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r963076 - in /incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature: AbstractMethod.java hmac/HmacSha1Method.java
Date Sun, 11 Jul 2010 14:05:43 GMT
Author: simonetripodi
Date: Sun Jul 11 14:05:42 2010
New Revision: 963076

URL: http://svn.apache.org/viewvc?rev=963076&view=rev
Log:
fixed methods name consistency (encode|decode)base64

Modified:
    incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java
    incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/hmac/HmacSha1Method.java

Modified: incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java
URL: http://svn.apache.org/viewvc/incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java?rev=963076&r1=963075&r2=963076&view=diff
==============================================================================
--- incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java
(original)
+++ incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/AbstractMethod.java
Sun Jul 11 14:05:42 2010
@@ -316,7 +316,7 @@ public abstract class AbstractMethod imp
      * @param sequence the bytes sequence has to be encoded.
      * @return the Base64 encoded string.
      */
-    protected static String base64Encode(byte[] sequence) {
+    protected static String encodeBase64(byte[] sequence) {
         return new String(Base64.encodeBase64(sequence, false));
     }
 

Modified: incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/hmac/HmacSha1Method.java
URL: http://svn.apache.org/viewvc/incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/hmac/HmacSha1Method.java?rev=963076&r1=963075&r2=963076&view=diff
==============================================================================
--- incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/hmac/HmacSha1Method.java
(original)
+++ incubator/amber/trunk/signature-api/src/main/java/org/apache/amber/signature/hmac/HmacSha1Method.java
Sun Jul 11 14:05:42 2010
@@ -70,7 +70,7 @@ public final class HmacSha1Method extend
 
         byte[] rawHmac = mac.doFinal(baseString.getBytes());
 
-        return base64Encode(rawHmac);
+        return encodeBase64(rawHmac);
     }
 
     /**



Mime
View raw message