directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1041332 - /directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java
Date Thu, 02 Dec 2010 11:31:59 GMT
Author: kayyagari
Date: Thu Dec  2 11:31:59 2010
New Revision: 1041332

URL: http://svn.apache.org/viewvc?rev=1041332&view=rev
Log:
o changed eType collection to Set

Modified:
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java?rev=1041332&r1=1041331&r2=1041332&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java
(original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/components/KdcReqBody.java
Thu Dec  2 11:31:59 2010
@@ -22,7 +22,9 @@ package org.apache.directory.shared.kerb
 
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
+import java.util.HashSet;
 import java.util.List;
+import java.util.Set;
 
 import org.apache.directory.server.i18n.I18n;
 import org.apache.directory.shared.asn1.AbstractAsn1Object;
@@ -94,7 +96,7 @@ public class KdcReqBody extends Abstract
     private int nonce;
     
     /** Set of desired encryption types */
-    private List<EncryptionType> eType;
+    private Set<EncryptionType> eType;
     
     /** Addresses valid for the requested ticket */
     private HostAddresses addresses;
@@ -132,7 +134,7 @@ public class KdcReqBody extends Abstract
     public KdcReqBody()
     {
         additionalTickets = new ArrayList<Ticket>();
-        eType = new ArrayList<EncryptionType>();
+        eType = new HashSet<EncryptionType>();
     }
 
 
@@ -230,7 +232,7 @@ public class KdcReqBody extends Abstract
      *
      * @return The requested {@link EncryptionType}s.
      */
-    public List<EncryptionType> getEType()
+    public Set<EncryptionType> getEType()
     {
         return eType;
     }
@@ -239,7 +241,7 @@ public class KdcReqBody extends Abstract
     /**
      * @param eType the eType to set
      */
-    public void setEType( List<EncryptionType> eType )
+    public void setEType( Set<EncryptionType> eType )
     {
         this.eType = eType;
     }



Mime
View raw message