jreceiver.common.rec.security
Class RoleAuthKey

java.lang.Object
  |
  +--jreceiver.common.rec.BaseRec
        |
        +--jreceiver.common.rec.security.RoleAuthKey
All Implemented Interfaces:
Hashable, Key

public class RoleAuthKey
extends BaseRec
implements Key

An interface describing a RoleAuth associated with a method profile.

Version:
$Revision: 1.1 $ $Date: 2002/07/20 01:42:18 $
Author:
Reed Esau

Field Summary
static java.lang.String HKEY_METHOD_KEY
           
static java.lang.String HKEY_ROLE_ID
           
protected  MethodKey method_key
           
protected  java.lang.String role_id
           
 
Constructor Summary
RoleAuthKey(java.util.Hashtable hash)
          ctor - construct from a hashtable, usually retrieved via XML-RPC
RoleAuthKey(MethodKey method_key, java.lang.String role_id)
          ctor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 boolean getIsValid()
          return true if the key is internally sound
 MethodKey getMethodKey()
           
 java.lang.String getRoleId()
           
 java.util.Hashtable toHash()
          Store the object as a hash suitable for transport over an XML-RPC connection or similar.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class jreceiver.common.rec.BaseRec
dissolve, dissolveMap, find, find, find, find
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HKEY_METHOD_KEY

public static final java.lang.String HKEY_METHOD_KEY

HKEY_ROLE_ID

public static final java.lang.String HKEY_ROLE_ID

method_key

protected MethodKey method_key

role_id

protected java.lang.String role_id
Constructor Detail

RoleAuthKey

public RoleAuthKey(MethodKey method_key,
                   java.lang.String role_id)
ctor

RoleAuthKey

public RoleAuthKey(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC
Parameters:
hash -  
Method Detail

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
Overrides:
equals in class java.lang.Object

getMethodKey

public MethodKey getMethodKey()

getRoleId

public java.lang.String getRoleId()

getIsValid

public boolean getIsValid()
return true if the key is internally sound

toHash

public java.util.Hashtable toHash()
Store the object as a hash suitable for transport over an XML-RPC connection or similar.

Use RoleAuthRec(Hashtable) to transform the data back into an object of this type.

Specified by:
toHash in interface Hashable
Returns:
 

toString

public java.lang.String toString()
Description copied from interface: Hashable
Returns a string representation of the object.
Specified by:
toString in interface Hashable
Overrides:
toString in class java.lang.Object


Copyright © 2001-2002 Reed Esau, All Rights Reserved.