directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r280936 - in /directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages: Encodable.java KdcReply.java components/Authenticator.java components/EncTicketPart.java value/AuthorizationData.java value/EncryptedTimeStamp.java
Date Wed, 14 Sep 2005 20:41:44 GMT
Author: erodriguez
Date: Wed Sep 14 13:41:38 2005
New Revision: 280936

URL: http://svn.apache.org/viewcvs?rev=280936&view=rev
Log:
Commit to address DIRKERBEROS-4:
o  Added Encodable interface
o  Added interface to message components that needed it

http://issues.apache.org/jira/browse/DIRKERBEROS-4

Added:
    directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/Encodable.java
  (with props)
Modified:
    directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/KdcReply.java
    directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/components/Authenticator.java
    directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/components/EncTicketPart.java
    directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/AuthorizationData.java
    directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/EncryptedTimeStamp.java

Added: directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/Encodable.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/Encodable.java?rev=280936&view=auto
==============================================================================
--- directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/Encodable.java
(added)
+++ directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/Encodable.java
Wed Sep 14 13:41:38 2005
@@ -0,0 +1,25 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+package org.apache.kerberos.messages;
+
+/**
+ * Marker interface for ASN.1 encodable objects.
+ */
+public interface Encodable
+{
+}

Propchange: directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/Encodable.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/KdcReply.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/KdcReply.java?rev=280936&r1=280935&r2=280936&view=diff
==============================================================================
--- directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/KdcReply.java
(original)
+++ directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/KdcReply.java
Wed Sep 14 13:41:38 2005
@@ -28,7 +28,7 @@
 import org.apache.kerberos.messages.value.PreAuthenticationData;
 import org.apache.kerberos.messages.value.TicketFlags;
 
-public class KdcReply extends KerberosMessage
+public class KdcReply extends KerberosMessage implements Encodable
 {
 	private PreAuthenticationData[] paData;  //optional
 	private KerberosPrincipal       clientPrincipal;

Modified: directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/components/Authenticator.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/components/Authenticator.java?rev=280936&r1=280935&r2=280936&view=diff
==============================================================================
--- directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/components/Authenticator.java
(original)
+++ directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/components/Authenticator.java
Wed Sep 14 13:41:38 2005
@@ -18,12 +18,13 @@
 
 import javax.security.auth.kerberos.KerberosPrincipal;
 
+import org.apache.kerberos.messages.Encodable;
 import org.apache.kerberos.messages.value.AuthorizationData;
 import org.apache.kerberos.messages.value.Checksum;
 import org.apache.kerberos.messages.value.EncryptionKey;
 import org.apache.kerberos.messages.value.KerberosTime;
 
-public class Authenticator
+public class Authenticator implements Encodable
 {
 	public static final int AUTHENTICATOR_VNO = 5;
 

Modified: directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/components/EncTicketPart.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/components/EncTicketPart.java?rev=280936&r1=280935&r2=280936&view=diff
==============================================================================
--- directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/components/EncTicketPart.java
(original)
+++ directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/components/EncTicketPart.java
Wed Sep 14 13:41:38 2005
@@ -18,6 +18,7 @@
 
 import javax.security.auth.kerberos.KerberosPrincipal;
 
+import org.apache.kerberos.messages.Encodable;
 import org.apache.kerberos.messages.value.AuthorizationData;
 import org.apache.kerberos.messages.value.EncryptionKey;
 import org.apache.kerberos.messages.value.HostAddresses;
@@ -28,7 +29,7 @@
 /**
  * Encrypted part of Tickets
  */
-public class EncTicketPart
+public class EncTicketPart implements Encodable
 {
 	private TicketFlags       flags;
 	private EncryptionKey     sessionKey;

Modified: directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/AuthorizationData.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/AuthorizationData.java?rev=280936&r1=280935&r2=280936&view=diff
==============================================================================
--- directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/AuthorizationData.java
(original)
+++ directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/AuthorizationData.java
Wed Sep 14 13:41:38 2005
@@ -20,7 +20,9 @@
 import java.util.Iterator;
 import java.util.List;
 
-public class AuthorizationData
+import org.apache.kerberos.messages.Encodable;
+
+public class AuthorizationData implements Encodable
 {
     private List entries = new ArrayList();
 

Modified: directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/EncryptedTimeStamp.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/EncryptedTimeStamp.java?rev=280936&r1=280935&r2=280936&view=diff
==============================================================================
--- directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/EncryptedTimeStamp.java
(original)
+++ directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/EncryptedTimeStamp.java
Wed Sep 14 13:41:38 2005
@@ -16,10 +16,12 @@
  */
 package org.apache.kerberos.messages.value;
 
+import org.apache.kerberos.messages.Encodable;
+
 /**
  * Pre-authentication encrypted timestamp
  */
-public class EncryptedTimeStamp
+public class EncryptedTimeStamp implements Encodable
 {
 	private KerberosTime timeStamp;
 	private int          microSeconds; //optional



Mime
View raw message