org.resilientedge.jockey.peer
Class AppToken
java.lang.Object
|
+--org.resilientedge.jockey.peer.AppToken
- All Implemented Interfaces:
- java.lang.Comparable, java.io.Serializable
- public class AppToken
- extends java.lang.Object
- implements java.lang.Comparable, java.io.Serializable
Represents a app, either a local session or remote device.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- John Gardner
- See Also:
- Serialized Form
Constructor Summary |
AppToken(java.lang.String appId,
AppDescriptor app,
Authority[] authorities)
Creates a new, completely specified, AppToken instance. |
Method Summary |
int |
compareTo(java.lang.Object other)
Returns zero if the other app token is the same as this token. |
boolean |
equals(java.lang.Object other)
Indicates whether some other object is "equal to" this app. |
AppDescriptor |
getAppDescriptor()
Return the application descriptor. |
java.lang.String |
getAppId()
Gets the unique app id |
Authority[] |
getAuthorities()
Return the application descriptor. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppToken
public AppToken(java.lang.String appId,
AppDescriptor app,
Authority[] authorities)
- Creates a new, completely specified,
AppToken
instance.
- Parameters:
appId
- the appId of the app for which this is a token.app
- the descriptor supplied when the app was created.authorities
- an array of authorities the app had when created.
getAppId
public java.lang.String getAppId()
- Gets the unique app id
- Returns:
- The AppId value
getAppDescriptor
public AppDescriptor getAppDescriptor()
- Return the application descriptor.
- Returns:
- application descriptor
getAuthorities
public Authority[] getAuthorities()
- Return the application descriptor.
- Returns:
- application descriptor
compareTo
public int compareTo(java.lang.Object other)
- Returns zero if the other app token is the same as this token.
- Specified by:
compareTo
in interface java.lang.Comparable
- Parameters:
other
- network 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 app.
- Overrides:
equals
in class java.lang.Object
- Parameters:
other
- object to compare- Returns:
- true if equal
Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.