directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r233336 - in /directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos: io/encoder/TicketEncoder.java messages/components/Ticket.java
Date Thu, 18 Aug 2005 17:00:46 GMT
Author: erodriguez
Date: Thu Aug 18 10:00:34 2005
New Revision: 233336

URL: http://svn.apache.org/viewcvs?rev=233336&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/io/encoder/TicketEncoder.java
    directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/components/Ticket.java

Modified: directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/io/encoder/TicketEncoder.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/io/encoder/TicketEncoder.java?rev=233336&r1=233335&r2=233336&view=diff
==============================================================================
--- directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/io/encoder/TicketEncoder.java
(original)
+++ directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/io/encoder/TicketEncoder.java
Thu Aug 18 10:00:34 2005
@@ -39,7 +39,7 @@
     {
 		DERSequence vector = new DERSequence();
 		
-		vector.add( new DERTaggedObject( 0, DERInteger.valueOf( ticket.getTicketVersionNumber()
) ) );
+		vector.add( new DERTaggedObject( 0, DERInteger.valueOf( ticket.getVersionNumber() ) ) );
 		vector.add( new DERTaggedObject( 1, DERGeneralString.valueOf( ticket.getRealm() ) ) );
 		vector.add( new DERTaggedObject( 2, PrincipalNameEncoder.encode( ticket.getServerPrincipal()
) ) );
 		vector.add( new DERTaggedObject( 3, EncryptedDataEncoder.encodeSequence( ticket.getEncPart()
) ) );

Modified: directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/components/Ticket.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/components/Ticket.java?rev=233336&r1=233335&r2=233336&view=diff
==============================================================================
--- directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/components/Ticket.java
(original)
+++ directory/shared/kerberos/branches/refactor-to-chain/common/src/java/org/apache/kerberos/messages/components/Ticket.java
Thu Aug 18 10:00:34 2005
@@ -14,94 +14,134 @@
  *   limitations under the License.
  *
  */
+
 package org.apache.kerberos.messages.components;
 
-import org.apache.kerberos.messages.value.*;
+import javax.security.auth.kerberos.KerberosPrincipal;
 
-import javax.security.auth.kerberos.*;
+import org.apache.kerberos.messages.value.AuthorizationData;
+import org.apache.kerberos.messages.value.EncryptedData;
+import org.apache.kerberos.messages.value.EncryptionKey;
+import org.apache.kerberos.messages.value.HostAddresses;
+import org.apache.kerberos.messages.value.KerberosTime;
+import org.apache.kerberos.messages.value.TicketFlags;
+import org.apache.kerberos.messages.value.TransitedEncoding;
 
 /**
  * Ticket message component as handed out by the ticket granting service
  */
-public class Ticket {
-	
-	public static final int TICKET_VNO = 5;
-
-	private int               _ticketVersionNumber;
-	private KerberosPrincipal _serverPrincipal;
-	private EncryptedData     _encPart;
-	
-	private EncTicketPart _encTicketPart;
-	
-	public Ticket(KerberosPrincipal serverPrincipal, EncryptedData encPart) {
-		this(TICKET_VNO, serverPrincipal, encPart);
-	}
-	
-	public Ticket(int versionNumber, KerberosPrincipal serverPrincipal, EncryptedData encPart)
{
-		_ticketVersionNumber = versionNumber;
-		_serverPrincipal     = serverPrincipal;
-		_encPart             = encPart;
-	}
-	
-	public void setEncTicketPart(EncTicketPart decryptedPart) {
-		_encTicketPart = decryptedPart;
-	}
-	
-	// getters
-	public int getTicketVersionNumber() {
-		return _ticketVersionNumber;
-	}
-	public KerberosPrincipal getServerPrincipal() {
-		return _serverPrincipal;
-	}
-	public String getRealm() {
-		return _serverPrincipal.getRealm();
-	}
-	public EncryptedData getEncPart() {
-		return _encPart;
-	}
-	public EncTicketPart getEncTicketPart() {
-		return _encTicketPart;
-	}
-	
-	// EncTicketPart delegate getters
-	public AuthorizationData getAuthorizationData() {
-		return _encTicketPart.getAuthorizationData();
-	}
-	public KerberosTime getAuthTime() {
-		return _encTicketPart.getAuthTime();
-	}
-	public HostAddresses getClientAddresses() {
-		return _encTicketPart.getClientAddresses();
-	}
-	public KerberosPrincipal getClientPrincipal() {
-		return _encTicketPart.getClientPrincipal();
-	}
-	public String getClientRealm() {
-		return _encTicketPart.getClientPrincipal().getRealm();
-	}
-	public KerberosTime getEndTime() {
-		return _encTicketPart.getEndTime();
-	}
-	public TicketFlags getFlags() {
-		return _encTicketPart.getFlags();
-	}
-	public KerberosTime getRenewTill() {
-		return _encTicketPart.getRenewTill();
-	}
-	public EncryptionKey getSessionKey() {
-		return _encTicketPart.getSessionKey();
-	}
-	public KerberosTime getStartTime() {
-		return _encTicketPart.getStartTime();
-	}
-	public TransitedEncoding getTransitedEncoding() {
-		return _encTicketPart.getTransitedEncoding();
-	}
-	
-	// EncTicketPart TicketFlag delegates
-	public boolean getFlag(int flag) {
-		return _encTicketPart.getFlags().get(flag);
-	}
-}
+public class Ticket
+{
+    public static final int TICKET_VNO = 5;
+
+    private int versionNumber;
+    private KerberosPrincipal serverPrincipal;
+    private EncryptedData encPart;
+
+    private EncTicketPart encTicketPart;
+
+    public Ticket(KerberosPrincipal serverPrincipal, EncryptedData encPart)
+    {
+        this(TICKET_VNO, serverPrincipal, encPart);
+    }
+
+    public Ticket(int versionNumber, KerberosPrincipal serverPrincipal, EncryptedData encPart)
+    {
+        this.versionNumber = versionNumber;
+        this.serverPrincipal = serverPrincipal;
+        this.encPart = encPart;
+    }
+
+    public void setEncTicketPart(EncTicketPart decryptedPart)
+    {
+        encTicketPart = decryptedPart;
+    }
+
+    // getters
+    public int getVersionNumber()
+    {
+        return versionNumber;
+    }
+
+    public KerberosPrincipal getServerPrincipal()
+    {
+        return serverPrincipal;
+    }
+
+    public String getRealm()
+    {
+        return serverPrincipal.getRealm();
+    }
+
+    public EncryptedData getEncPart()
+    {
+        return encPart;
+    }
+
+    public EncTicketPart getEncTicketPart()
+    {
+        return encTicketPart;
+    }
 
+    // EncTicketPart delegate getters
+    public AuthorizationData getAuthorizationData()
+    {
+        return encTicketPart.getAuthorizationData();
+    }
+
+    public KerberosTime getAuthTime()
+    {
+        return encTicketPart.getAuthTime();
+    }
+
+    public HostAddresses getClientAddresses()
+    {
+        return encTicketPart.getClientAddresses();
+    }
+
+    public KerberosPrincipal getClientPrincipal()
+    {
+        return encTicketPart.getClientPrincipal();
+    }
+
+    public String getClientRealm()
+    {
+        return encTicketPart.getClientPrincipal().getRealm();
+    }
+
+    public KerberosTime getEndTime()
+    {
+        return encTicketPart.getEndTime();
+    }
+
+    public TicketFlags getFlags()
+    {
+        return encTicketPart.getFlags();
+    }
+
+    public KerberosTime getRenewTill()
+    {
+        return encTicketPart.getRenewTill();
+    }
+
+    public EncryptionKey getSessionKey()
+    {
+        return encTicketPart.getSessionKey();
+    }
+
+    public KerberosTime getStartTime()
+    {
+        return encTicketPart.getStartTime();
+    }
+
+    public TransitedEncoding getTransitedEncoding()
+    {
+        return encTicketPart.getTransitedEncoding();
+    }
+
+    // EncTicketPart TicketFlag delegates
+    public boolean getFlag(int flag)
+    {
+        return encTicketPart.getFlags().get(flag);
+    }
+}



Mime
View raw message