directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject [1/5] directory-kerby git commit: o removed some setters on principal o set the default expiration time to NEVER
Date Thu, 02 Jul 2015 08:15:41 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/master 5bb643cea -> d534db856


o removed some setters on principal
o set the default expiration time to NEVER


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

Branch: refs/heads/master
Commit: d2aa02550395c41707e94b73d0e6a51a440f90c9
Parents: 5bb643c
Author: Kiran Ayyagari <kayyagari@apache.org>
Authored: Thu Jul 2 15:53:01 2015 +0800
Committer: Kiran Ayyagari <kayyagari@apache.org>
Committed: Thu Jul 2 15:53:01 2015 +0800

----------------------------------------------------------------------
 .../kerby/kerberos/kerb/identity/KrbIdentity.java       | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/d2aa0255/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/KrbIdentity.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/KrbIdentity.java
b/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/KrbIdentity.java
index e7b1bd1..53f9a6b 100644
--- a/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/KrbIdentity.java
+++ b/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/KrbIdentity.java
@@ -50,8 +50,8 @@ public class KrbIdentity {
     /** flag to indicate if this identity was locked */
     private boolean locked;
     
-    /** the expiration time of the identity */
-    private KerberosTime expireTime = new KerberosTime(253402300799900L);
+    /** the expiration time of the identity, default set to never expire */
+    private KerberosTime expireTime = KerberosTime.NEVER;
     
     /** the creation time of the identity */
     private KerberosTime createdTime = KerberosTime.now();
@@ -68,18 +68,10 @@ public class KrbIdentity {
         return principal.getName();
     }
 
-    public void setPrincipalName(String newPrincipalName) { 
-        principal = new PrincipalName(newPrincipalName);
-    }
-
     public PrincipalName getPrincipal() {
         return principal;
     }
 
-    public void setPrincipal(PrincipalName principal) {
-        this.principal = principal;
-    }
-
     public KerberosTime getExpireTime() {
         return expireTime;
     }


Mime
View raw message