You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2004/10/12 03:18:17 UTC

svn commit: rev 54638 - incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/application

Author: erodriguez
Date: Mon Oct 11 18:18:17 2004
New Revision: 54638

Added:
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/application/SafeBody.java
Log:
Adding impl of SafeMessage body.  This is a client/service message and, therefore, not a core part of the Kerberos KDC.

Added: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/application/SafeBody.java
==============================================================================
--- (empty file)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/application/SafeBody.java	Mon Oct 11 18:18:17 2004
@@ -0,0 +1,63 @@
+/*
+ *   Copyright 2004 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.application;
+
+import org.apache.kerberos.messages.value.*;
+
+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
+
+	/**
+	 * 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;
+	}
+}
+