directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: rev 55752 - incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/value
Date Thu, 28 Oct 2004 00:09:38 GMT
Author: erodriguez
Date: Wed Oct 27 17:09:38 2004
New Revision: 55752

Added:
   incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/value/KrbCredInfo.java
Log:
Kerberos Credential Information value object.

Added: incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/value/KrbCredInfo.java
==============================================================================
--- (empty file)
+++ incubator/directory/kerberos/trunk/source/main/org/apache/kerberos/messages/value/KrbCredInfo.java
Wed Oct 27 17:09:38 2004
@@ -0,0 +1,88 @@
+/*
+ *   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.value;
+
+/**
+ * Kerberos credential information
+ */
+public class KrbCredInfo {
+
+	private EncryptionKey  _key;
+	private Realm          _principalRealm;  //optional
+	private PrincipalName  _principalName;   //optional
+	private TicketFlags    _flags;           //optional
+	private KerberosTime   _authTime;        //optional
+	private KerberosTime   _startTime;       //optional
+	private KerberosTime   _endTime;         //optional
+	private KerberosTime   _renewTill;       //optional
+	private Realm          _serverRealm;     //optional
+	private PrincipalName  _serverName;      //optional
+	private HostAddresses  _clientAddresses; //optional
+
+	public KrbCredInfo(EncryptionKey key, Realm principalRealm, PrincipalName principalName,
+			TicketFlags flags, KerberosTime authTime, KerberosTime startTime,
+			KerberosTime endTime, KerberosTime renewTill, Realm serverRealm,
+			PrincipalName serverName, HostAddresses clientAddresses) {
+		
+		_key             = key;
+		_principalRealm  = principalRealm;
+		_principalName   = principalName;
+		_flags           = flags;
+		_authTime        = authTime;
+		_startTime       = startTime;
+		_endTime         = endTime;
+		_renewTill       = renewTill;
+		_serverRealm     = serverRealm;
+		_serverName      = serverName;
+		_clientAddresses = clientAddresses;
+	}
+
+	public KerberosTime getAuthTime() {
+		return _authTime;
+	}
+	public HostAddresses getClientAddresses() {
+		return _clientAddresses;
+	}
+	public KerberosTime getEndTime() {
+		return _endTime;
+	}
+	public TicketFlags getFlags() {
+		return _flags;
+	}
+	public EncryptionKey getKey() {
+		return _key;
+	}
+	public PrincipalName getPrincipalName() {
+		return _principalName;
+	}
+	public Realm getPrincipalRealm() {
+		return _principalRealm;
+	}
+	public KerberosTime getRenewTill() {
+		return _renewTill;
+	}
+	public PrincipalName getServerName() {
+		return _serverName;
+	}
+	public Realm getServerRealm() {
+		return _serverRealm;
+	}
+	public KerberosTime getStartTime() {
+		return _startTime;
+	}
+}
+

Mime
View raw message