directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: rev 53805 - incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages
Date Tue, 05 Oct 2004 16:21:31 GMT
Author: erodriguez
Date: Tue Oct  5 09:21:26 2004
New Revision: 53805

Added:
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/AuthenticationReply.java
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/ErrorMessage.java
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/TicketGrantReply.java
Log:
primary kerberos KDC reply messages.

Added: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/AuthenticationReply.java
==============================================================================
--- (empty file)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/AuthenticationReply.java
Tue Oct  5 09:21:26 2004
@@ -0,0 +1,36 @@
+/*
+ *   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;
+
+import org.apache.kerberos.messages.components.*;
+import org.apache.kerberos.messages.value.*;
+
+public class AuthenticationReply extends KdcReply {
+	
+	/**
+	 * Class constructors
+	 */
+	public AuthenticationReply() {
+		super(MessageType.KRB_AS_REP);
+	}
+	
+	public AuthenticationReply(PreAuthenticationData[] paData, Realm crealm,
+			PrincipalName cname, Ticket ticket, EncryptedData encPart) {
+		super(paData, crealm, cname, ticket, encPart, MessageType.KRB_AS_REP);
+	}
+}
+

Added: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/ErrorMessage.java
==============================================================================
--- (empty file)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/ErrorMessage.java
Tue Oct  5 09:21:26 2004
@@ -0,0 +1,97 @@
+/*
+ *   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;
+
+import org.apache.kerberos.kdc.*;
+import org.apache.kerberos.messages.value.*;
+
+public class ErrorMessage {
+
+	private int           _pvno;
+	private MessageType   _msgType;
+	private KerberosTime  _ctime;  //optional
+	private Integer       _cusec;  //optional
+	private KerberosTime  _stime;
+	private int           _susec;
+	private int           _errorCode;
+	private Realm         _crealm; //optional
+	private PrincipalName _cname;  //optional
+	private Realm         _realm;
+	private PrincipalName _sname;
+	private String        _eText;  //optional
+	private byte[]        _eData;  //optional
+
+	public ErrorMessage(KerberosTime ctime, Integer cusec, KerberosTime stime, int susec,
+			int errorCode, Realm crealm, PrincipalName cname, Realm realm, PrincipalName sname,
+			String eText, byte[] eData) {
+		
+		_pvno      = LocalConfig.PVNO;
+		_msgType   = MessageType.KRB_ERROR;
+		_ctime     = ctime;
+		_cusec     = cusec;
+		_stime     = stime;
+		_susec     = susec;
+		_errorCode = errorCode;
+		_crealm    = crealm;
+		_cname     = cname;
+		_realm     = realm;
+		_sname     = sname;
+		_eText     = eText;
+		_eData     = eData;
+	}
+
+	public PrincipalName getCname() {
+		return _cname;
+	}
+	public Realm getCrealm() {
+		return _crealm;
+	}
+	public KerberosTime getCtime() {
+		return _ctime;
+	}
+	public Integer getCusec() {
+		return _cusec;
+	}
+	public byte[] getEData() {
+		return _eData;
+	}
+	public int getErrorCode() {
+		return _errorCode;
+	}
+	public String getEText() {
+		return _eText;
+	}
+	public MessageType getMsgType() {
+		return _msgType;
+	}
+	public int getPvno() {
+		return _pvno;
+	}
+	public Realm getRealm() {
+		return _realm;
+	}
+	public PrincipalName getSname() {
+		return _sname;
+	}
+	public KerberosTime getStime() {
+		return _stime;
+	}
+	public int getSusec() {
+		return _susec;
+	}
+}
+

Added: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/TicketGrantReply.java
==============================================================================
--- (empty file)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/TicketGrantReply.java
Tue Oct  5 09:21:26 2004
@@ -0,0 +1,36 @@
+/*
+ *   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;
+
+import org.apache.kerberos.messages.components.*;
+import org.apache.kerberos.messages.value.*;
+
+public class TicketGrantReply extends KdcReply {
+
+	/**
+	 * Class constructors
+	 */
+	public TicketGrantReply() {
+		super(MessageType.KRB_TGS_REP);
+	}
+	
+	public TicketGrantReply(PreAuthenticationData[] pAData, Realm crealm,
+			PrincipalName cname, Ticket ticket, EncryptedData encPart) {
+		super(pAData, crealm, cname, ticket, encPart, MessageType.KRB_TGS_REP);
+	}
+}
+

Mime
View raw message