wt.org
Class DirectoryKey

java.lang.Object
  extended bywt.org.DirectoryKey
All Implemented Interfaces:
Serializable

public class DirectoryKey
extends Object
implements Serializable

This class defines LDAP directory keys for the WTPrincipalCache.

See Also:
Serialized Form

Field Summary
private  String dn
           
private  int hashcode
           
private  String service
           
 
Constructor Summary
DirectoryKey()
          No-arg constructor.
DirectoryKey(String dn, String service)
          Construct an instance with a specific distinguished name and service name.
 
Method Summary
 boolean equals(Object other)
          Returns true if a specified object matches this key.
 String getDn()
          Returns the directory distinguished name associated with the key.
 String getService()
          Returns the service name associated with the key.
 int hashCode()
          Returns the hashcode of the key.
 void setDn(String dn)
          Sets the directory distinguished name associated with the key.
 void setService(String service)
          Sets the service name associated with the key.
 String toString()
          Returns a String rendering of the key.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

dn

private String dn

service

private String service

hashcode

private int hashcode
Constructor Detail

DirectoryKey

public DirectoryKey()
No-arg constructor.


DirectoryKey

public DirectoryKey(String dn,
                    String service)
Construct an instance with a specific distinguished name and service name.

Parameters:
dn - The distinguished name of the directory entry for which to create a key.
service - The name of the service in which the entry resides.
Method Detail

setDn

public void setDn(String dn)
Sets the directory distinguished name associated with the key.

Parameters:
dn - The distinguished name.

getDn

public String getDn()
Returns the directory distinguished name associated with the key.

Returns:
The distinguished name.

setService

public void setService(String service)
Sets the service name associated with the key.

Parameters:
service - The service name.

getService

public String getService()
Returns the service name associated with the key.

Returns:
The service name.

equals

public boolean equals(Object other)
Returns true if a specified object matches this key.

Parameters:
other - The object to match against this key.
Returns:
true if the object matches this key, false otherwise.

toString

public String toString()
Returns a String rendering of the key.

Returns:
The String rendering.

hashCode

public int hashCode()
Returns the hashcode of the key.

Returns:
The hashcode