org.resilientedge.jockey.peer
Class Authority

java.lang.Object
  |
  +--org.resilientedge.jockey.peer.Authority
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class Authority
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

This class represents an entity which may have some specific permissions on the peer network. An authority provides a security context for an application, either based on the application itself, the person using the application, or the current role of the application.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner
See Also:
Serialized Form

Constructor Summary
Authority(java.lang.String name, java.lang.String type, java.lang.String id)
          Construct a fully formed Authority.
 
Method Summary
 int compareTo(java.lang.Object other)
          Returns zero if the other authority is the same as this one.
 boolean equals(java.lang.Object other)
          Indicates whether some other object is "equal to" this object.
 java.lang.String getAuthorityId()
          Returns the authority id
 java.lang.String getAuthorityName()
          Returns the authority name
 java.lang.String getAuthorityType()
          Returns the authority type
 void setAuthorityId(java.lang.String newValue)
          Sets the authority id
 void setAuthorityName(java.lang.String newValue)
          Sets the authority name
 void setAuthorityType(java.lang.String newValue)
          Sets the authority type
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authority

public Authority(java.lang.String name,
                 java.lang.String type,
                 java.lang.String id)
Construct a fully formed Authority.
Parameters:
name - authority familiar name
type - authority type name
id - identifier for this authority
Method Detail

getAuthorityType

public java.lang.String getAuthorityType()
Returns the authority type
Returns:
The AuthorityType value

setAuthorityType

public void setAuthorityType(java.lang.String newValue)
Sets the authority type
Parameters:
newValue - The new AuthorityType value

getAuthorityName

public java.lang.String getAuthorityName()
Returns the authority name
Returns:
The AuthorityName value

setAuthorityName

public void setAuthorityName(java.lang.String newValue)
Sets the authority name
Parameters:
newValue - The new AuthorityName value

getAuthorityId

public java.lang.String getAuthorityId()
Returns the authority id
Returns:
The AuthorityId value

setAuthorityId

public void setAuthorityId(java.lang.String newValue)
Sets the authority id
Parameters:
newValue - The new AuthorityId value

compareTo

public int compareTo(java.lang.Object other)
Returns zero if the other authority is the same as this one.
Specified by:
compareTo in interface java.lang.Comparable
Parameters:
other - object to compare
Returns:
a positive or negative integer, or zero

equals

public boolean equals(java.lang.Object other)
Indicates whether some other object is "equal to" this object.
Overrides:
equals in class java.lang.Object
Parameters:
other - object to compare
Returns:
true if equal


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.