directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: rev 54653 - incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/application
Date Tue, 12 Oct 2004 04:16:26 GMT
Author: erodriguez
Date: Mon Oct 11 21:16:24 2004
New Revision: 54653

Modified:
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/application/CredentialMessage.java
Log:
Refactored CredentialMessage to extend KerberosMessage base class.

Modified: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/application/CredentialMessage.java
==============================================================================
--- incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/application/CredentialMessage.java
(original)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/application/CredentialMessage.java
Mon Oct 11 21:16:24 2004
@@ -21,31 +21,22 @@
 import org.apache.kerberos.messages.components.*;
 import org.apache.kerberos.messages.value.*;
 
-public class CredentialMessage {
-	
-	private int           _pvno;
-	private MessageType   _msgType;
-	private Ticket[]      _tickets;
+public class CredentialMessage extends KerberosMessage {
+
 	private EncryptedData _encPart;
+	private Ticket[]      _tickets;
 
 	/**
 	 * Class constructor
 	 */
-	public CredentialMessage(Ticket[] tickets, EncryptedData encPart) {
-		_pvno    = LocalConfig.PVNO;
-		_msgType = MessageType.KRB_CRED;
-		_tickets = tickets;
+	public CredentialMessage(EncryptedData encPart, Ticket[] tickets) {
+		super(LocalConfig.PVNO, MessageType.KRB_CRED);
 		_encPart = encPart;
+		_tickets = tickets;
 	}
 	
 	public EncryptedData getEncPart() {
 		return _encPart;
-	}
-	public MessageType getMsgType() {
-		return _msgType;
-	}
-	public int getPvno() {
-		return _pvno;
 	}
 	public Ticket[] getTickets() {
 		return _tickets;

Mime
View raw message