瀏覽代碼

Fix the length of the secret key.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0@1389199 13f79535-47bb-0310-9956-ffa450edef68
Owen O'Malley 12 年之前
父節點
當前提交
d6b7f10438
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/org/apache/hadoop/security/token/SecretManager.java

+ 1 - 1
src/core/org/apache/hadoop/security/token/SecretManager.java

@@ -75,7 +75,7 @@ public abstract class SecretManager<T extends TokenIdentifier> {
   /**
    * The length of the random keys to use.
    */
-  private static final int KEY_LENGTH = 20;
+  private static final int KEY_LENGTH = 64;
 
   /**
    * A thread local store for the Macs.