krb5.lib
Class Realm

java.lang.Object
  extended by krb5.lib.Realm
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Realm
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Class Description : Realm class. A modified version of the code obtained from the Open Group Research Institute.

Version:
1.1
Author:
Bojan Pajkovski
See Also:
Serialized Form

Constructor Summary
Realm(java.lang.String name)
          Class constructor
 
Method Summary
 java.lang.Object clone()
          Clones a copy of the object
 boolean equals(Realm other)
          Compares two realms
 java.lang.String toString()
          Converts to a printable string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Realm

public Realm(java.lang.String name)
      throws RealmException
Class constructor

Parameters:
name - String
Throws:
RealmException
See Also:
RealmException
Method Detail

clone

public java.lang.Object clone()
Clones a copy of the object

Overrides:
clone in class java.lang.Object
Returns:
Object is a result
See Also:
Object.clone()

equals

public boolean equals(Realm other)
Compares two realms

Parameters:
other - Realm
Returns:
boolean

toString

public java.lang.String toString()
Converts to a printable string

Overrides:
toString in class java.lang.Object
Returns:
String