aa.util
Class Key

java.lang.Object
  extended byaa.util.Key
All Implemented Interfaces:
java.io.Serializable

public class Key
extends java.lang.Object
implements java.io.Serializable

This class defines a security key to limit the access right for a certain object or operation.

History:

Version:
$Date: 2008/01/01 00:24:05 $ $Revision: 1.1 $
Author:
Myeong-Wuk Jang
See Also:
Serialized Form

Field Summary
private  java.util.Calendar m_calTime
          Time field of this key.
private  long m_lID
          Indentifer field of this key.
 
Constructor Summary
Key()
          Creates a secure key.
 
Method Summary
 boolean equals(Key p_key)
          Indicates whether some other key is 'equal to' this key.
 long getID()
          Returns the assigned identifier of this key.
 java.util.Calendar getTime()
          Returns the assigend time value of this key.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_lID

private long m_lID
Indentifer field of this key. This value is generated by a random rumber generator.


m_calTime

private java.util.Calendar m_calTime
Time field of this key. This value specifies when this key is generated.

Constructor Detail

Key

public Key()
Creates a secure key.

Method Detail

equals

public boolean equals(Key p_key)
Indicates whether some other key is 'equal to' this key.

Parameters:
p_key - the reference key to be compared with this key
Returns:
true if this key is the same as the the reference key;
false otherwise.

getID

public final long getID()
Returns the assigned identifier of this key.

Returns:
the assigned identifier of this key.

getTime

public final java.util.Calendar getTime()
Returns the assigend time value of this key.

Returns:
the assigend time value of this key.

toString

public java.lang.String toString()
Returns a string representation of this object.

Returns:
a string representation of this object.