directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dran...@apache.org
Subject directory-kerberos git commit: Added utilities to tell if encType or checksumType uses AES256 or not
Date Sat, 07 Mar 2015 13:03:47 GMT
Repository: directory-kerberos
Updated Branches:
  refs/heads/master c04f55323 -> 0dfab643e


Added utilities to tell if encType or checksumType uses AES256 or not


Project: http://git-wip-us.apache.org/repos/asf/directory-kerberos/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerberos/commit/0dfab643
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerberos/tree/0dfab643
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerberos/diff/0dfab643

Branch: refs/heads/master
Commit: 0dfab643ece8401dab116cb0eb4601e38a3b8fb0
Parents: c04f553
Author: Drankye <drankye@gmail.com>
Authored: Sat Mar 7 21:03:32 2015 +0800
Committer: Drankye <drankye@gmail.com>
Committed: Sat Mar 7 21:03:32 2015 +0800

----------------------------------------------------------------------
 .../apache/kerby/kerberos/kerb/spec/common/CheckSumType.java | 8 ++++++++
 .../kerby/kerberos/kerb/spec/common/EncryptionType.java      | 8 ++++++++
 2 files changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerberos/blob/0dfab643/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/common/CheckSumType.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/common/CheckSumType.java
b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/common/CheckSumType.java
index b7be286..ef25212 100644
--- a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/common/CheckSumType.java
+++ b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/common/CheckSumType.java
@@ -91,6 +91,14 @@ public enum CheckSumType implements KrbEnum {
         return displayName;
     }
 
+    /**
+     * Is the type uses AES256 or not
+     * @return true if uses AES256, false otherwise.
+     */
+    public boolean usesAES256() {
+        return name.contains("aes256");
+    }
+
     public static CheckSumType fromValue(Integer value) {
         if (value != null) {
             for (KrbEnum e : values()) {

http://git-wip-us.apache.org/repos/asf/directory-kerberos/blob/0dfab643/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/common/EncryptionType.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/common/EncryptionType.java
b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/common/EncryptionType.java
index 45c2427..58ee648 100644
--- a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/common/EncryptionType.java
+++ b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/spec/common/EncryptionType.java
@@ -108,6 +108,14 @@ public enum EncryptionType implements KrbEnum {
         return displayName;
     }
 
+    /**
+     * Is the type uses AES256 or not
+     * @return true if uses AES256, false otherwise.
+     */
+    public boolean usesAES256() {
+        return name.contains("aes256");
+    }
+
     public static EncryptionType fromValue(Integer value) {
         if (value != null) {
             for (KrbEnum e : values()) {


Mime
View raw message