directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r234117 - in /directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application: ApplicationReply.java CredentialMessage.java PrivateMessage.java SafeBody.java SafeMessage.java
Date Sat, 20 Aug 2005 19:32:28 GMT
Author: erodriguez
Date: Sat Aug 20 12:32:25 2005
New Revision: 234117

URL: http://svn.apache.org/viewcvs?rev=234117&view=rev
Log:
Reformatting:  imports, whitespace, line breaks, or code convention.

Modified:
    directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/ApplicationReply.java
    directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/CredentialMessage.java
    directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/PrivateMessage.java
    directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/SafeBody.java
    directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/SafeMessage.java

Modified: directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/ApplicationReply.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/ApplicationReply.java?rev=234117&r1=234116&r2=234117&view=diff
==============================================================================
--- directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/ApplicationReply.java
(original)
+++ directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/ApplicationReply.java
Sat Aug 20 12:32:25 2005
@@ -16,20 +16,22 @@
  */
 package org.apache.kerberos.messages.application;
 
-import org.apache.kerberos.messages.*;
-import org.apache.kerberos.messages.value.*;
+import org.apache.kerberos.messages.KerberosMessage;
+import org.apache.kerberos.messages.MessageType;
+import org.apache.kerberos.messages.value.EncryptedData;
 
-public class ApplicationReply extends KerberosMessage {
+public class ApplicationReply extends KerberosMessage
+{
+    private EncryptedData encryptedPart;
 
-	private EncryptedData _encryptedPart;
+    public ApplicationReply( EncryptedData encPart )
+    {
+        super( MessageType.KRB_AP_REP );
+        encryptedPart = encPart;
+    }
 
-	public ApplicationReply(EncryptedData encPart) {
-		super(MessageType.KRB_AP_REP);
-		_encryptedPart = encPart;
-	}
-	
-	public EncryptedData getEncPart() {
-		return _encryptedPart;
-	}
+    public EncryptedData getEncPart()
+    {
+        return encryptedPart;
+    }
 }
-

Modified: directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/CredentialMessage.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/CredentialMessage.java?rev=234117&r1=234116&r2=234117&view=diff
==============================================================================
--- directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/CredentialMessage.java
(original)
+++ directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/CredentialMessage.java
Sat Aug 20 12:32:25 2005
@@ -16,26 +16,30 @@
  */
 package org.apache.kerberos.messages.application;
 
-import org.apache.kerberos.messages.*;
-import org.apache.kerberos.messages.components.*;
-import org.apache.kerberos.messages.value.*;
+import org.apache.kerberos.messages.KerberosMessage;
+import org.apache.kerberos.messages.MessageType;
+import org.apache.kerberos.messages.components.Ticket;
+import org.apache.kerberos.messages.value.EncryptedData;
 
-public class CredentialMessage extends KerberosMessage {
+public class CredentialMessage extends KerberosMessage
+{
+    private EncryptedData encPart;
+    private Ticket[]      tickets;
 
-	private EncryptedData _encPart;
-	private Ticket[]      _tickets;
+    public CredentialMessage( EncryptedData encPart, Ticket[] tickets )
+    {
+        super( MessageType.KRB_CRED );
+        this.encPart = encPart;
+        this.tickets = tickets;
+    }
 
-	public CredentialMessage(EncryptedData encPart, Ticket[] tickets) {
-		super(MessageType.KRB_CRED);
-		_encPart = encPart;
-		_tickets = tickets;
-	}
-	
-	public EncryptedData getEncPart() {
-		return _encPart;
-	}
-	public Ticket[] getTickets() {
-		return _tickets;
-	}
-}
+    public EncryptedData getEncPart()
+    {
+        return encPart;
+    }
 
+    public Ticket[] getTickets()
+    {
+        return tickets;
+    }
+}

Modified: directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/PrivateMessage.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/PrivateMessage.java?rev=234117&r1=234116&r2=234117&view=diff
==============================================================================
--- directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/PrivateMessage.java
(original)
+++ directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/PrivateMessage.java
Sat Aug 20 12:32:25 2005
@@ -16,29 +16,33 @@
  */
 package org.apache.kerberos.messages.application;
 
-import org.apache.kerberos.messages.*;
-import org.apache.kerberos.messages.value.*;
+import org.apache.kerberos.messages.KerberosMessage;
+import org.apache.kerberos.messages.MessageType;
+import org.apache.kerberos.messages.value.EncryptedData;
 
-public class PrivateMessage extends KerberosMessage {
+public class PrivateMessage extends KerberosMessage
+{
+    private EncryptedData encryptedPart;
 
-	private EncryptedData _encryptedPart;
-	
-	public PrivateMessage() {
-		super(MessageType.KRB_PRIV);
-		// used by ASN.1 decoder
-	}
+    public PrivateMessage()
+    {
+        super( MessageType.KRB_PRIV );
+        // used by ASN.1 decoder
+    }
 
-	public PrivateMessage(EncryptedData encryptedPart) {
-		super(MessageType.KRB_PRIV);
-		_encryptedPart = encryptedPart;
-	}
-	
-	public EncryptedData getEncryptedPart() {
-		return _encryptedPart;
-	}
-	
-	public void setEncryptedPart(EncryptedData encryptedData) {
-		_encryptedPart = encryptedData;
-	}
-}
+    public PrivateMessage( EncryptedData encryptedPart )
+    {
+        super( MessageType.KRB_PRIV );
+        this.encryptedPart = encryptedPart;
+    }
+
+    public EncryptedData getEncryptedPart()
+    {
+        return encryptedPart;
+    }
 
+    public void setEncryptedPart( EncryptedData encryptedData )
+    {
+        encryptedPart = encryptedData;
+    }
+}

Modified: directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/SafeBody.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/SafeBody.java?rev=234117&r1=234116&r2=234117&view=diff
==============================================================================
--- directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/SafeBody.java
(original)
+++ directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/SafeBody.java
Sat Aug 20 12:32:25 2005
@@ -16,48 +16,59 @@
  */
 package org.apache.kerberos.messages.application;
 
-import org.apache.kerberos.messages.value.*;
+import org.apache.kerberos.messages.value.HostAddress;
+import org.apache.kerberos.messages.value.KerberosTime;
 
-public class SafeBody {
+public class SafeBody
+{
+    private byte[]       userData;
+    private KerberosTime timestamp; //optional
+    private Integer      usec; //optional
+    private Integer      seqNumber; //optional
+    private HostAddress  sAddress; //optional
+    private HostAddress  rAddress; //optional
 
-	private byte[]       _userData;
-	private KerberosTime _timestamp; //optional
-	private Integer      _usec;      //optional
-	private Integer      _seqNumber; //optional
-	private HostAddress  _sAddress;  //optional
-	private HostAddress  _rAddress;  //optional
-
-	/**
-	 * Class constructor
-	 */
-	public SafeBody(byte[] userData, KerberosTime timestamp, Integer usec, Integer seqNumber,
-			HostAddress sAddress, HostAddress rAddress) {
-		
-		_userData  = userData;
-		_timestamp = timestamp;
-		_usec      = usec;
-		_seqNumber = seqNumber;
-		_sAddress  = sAddress;
-		_rAddress  = rAddress;
-	}
-	
-	public HostAddress getRAddress() {
-		return _rAddress;
-	}
-	public HostAddress getSAddress() {
-		return _sAddress;
-	}
-	public Integer getSeqNumber() {
-		return _seqNumber;
-	}
-	public KerberosTime getTimestamp() {
-		return _timestamp;
-	}
-	public Integer getUsec() {
-		return _usec;
-	}
-	public byte[] getUserData() {
-		return _userData;
-	}
-}
+    /**
+     * Class constructor
+     */
+    public SafeBody( byte[] userData, KerberosTime timestamp, Integer usec, Integer seqNumber,
+            HostAddress sAddress, HostAddress rAddress )
+    {
+        this.userData  = userData;
+        this.timestamp = timestamp;
+        this.usec      = usec;
+        this.seqNumber = seqNumber;
+        this.sAddress  = sAddress;
+        this.rAddress  = rAddress;
+    }
+
+    public HostAddress getRAddress()
+    {
+        return rAddress;
+    }
+
+    public HostAddress getSAddress()
+    {
+        return sAddress;
+    }
+
+    public Integer getSeqNumber()
+    {
+        return seqNumber;
+    }
 
+    public KerberosTime getTimestamp()
+    {
+        return timestamp;
+    }
+
+    public Integer getUsec()
+    {
+        return usec;
+    }
+
+    public byte[] getUserData()
+    {
+        return userData;
+    }
+}

Modified: directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/SafeMessage.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/SafeMessage.java?rev=234117&r1=234116&r2=234117&view=diff
==============================================================================
--- directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/SafeMessage.java
(original)
+++ directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/application/SafeMessage.java
Sat Aug 20 12:32:25 2005
@@ -16,42 +16,57 @@
  */
 package org.apache.kerberos.messages.application;
 
-import org.apache.kerberos.messages.*;
-import org.apache.kerberos.messages.value.*;
+import org.apache.kerberos.messages.KerberosMessage;
+import org.apache.kerberos.messages.MessageType;
+import org.apache.kerberos.messages.value.Checksum;
+import org.apache.kerberos.messages.value.HostAddress;
+import org.apache.kerberos.messages.value.KerberosTime;
 
-public class SafeMessage extends KerberosMessage {
+public class SafeMessage extends KerberosMessage
+{
+    private SafeBody safeBody;
+    private Checksum cksum;
 
-	private SafeBody _safeBody;
-	private Checksum _cksum;
+    public SafeMessage( SafeBody safeBody, Checksum cksum )
+    {
+        super( MessageType.KRB_SAFE );
+        this.safeBody = safeBody;
+        this.cksum = cksum;
+    }
 
-	public SafeMessage(SafeBody safeBody, Checksum cksum) {
-		super(MessageType.KRB_SAFE);
-		_safeBody = safeBody;
-		_cksum    = cksum;
-	}
-	
-	public Checksum getCksum() {
-		return _cksum;
-	}
-	
-	// SafeBody delegate methods
-	public HostAddress getRAddress() {
-		return _safeBody.getRAddress();
-	}
-	public HostAddress getSAddress() {
-		return _safeBody.getSAddress();
-	}
-	public Integer getSeqNumber() {
-		return _safeBody.getSeqNumber();
-	}
-	public KerberosTime getTimestamp() {
-		return _safeBody.getTimestamp();
-	}
-	public Integer getUsec() {
-		return _safeBody.getUsec();
-	}
-	public byte[] getUserData() {
-		return _safeBody.getUserData();
-	}
-}
+    public Checksum getCksum()
+    {
+        return cksum;
+    }
+
+    // SafeBody delegate methods
+    public HostAddress getRAddress()
+    {
+        return safeBody.getRAddress();
+    }
+
+    public HostAddress getSAddress()
+    {
+        return safeBody.getSAddress();
+    }
+
+    public Integer getSeqNumber()
+    {
+        return safeBody.getSeqNumber();
+    }
 
+    public KerberosTime getTimestamp()
+    {
+        return safeBody.getTimestamp();
+    }
+
+    public Integer getUsec()
+    {
+        return safeBody.getUsec();
+    }
+
+    public byte[] getUserData()
+    {
+        return safeBody.getUserData();
+    }
+}



Mime
View raw message