|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.platform.VerifiableAgentNameImpl
The implementation of a name created by the VerifiableAgentNamingService.
VerifiableAgentNamingService,
Serialized Form| Constructor Summary | |
|---|---|
VerifiableAgentNameImpl(java.lang.String theName,
java.security.PublicKey thePublicKey,
java.lang.String theAuthority,
java.lang.String theKerbPrincipal,
java.lang.String theLevel,
VerifiableAgentName thePrevVan)
Creates a VerifiableAgentName. |
|
VerifiableAgentNameImpl(VerifiableAgentName theVan)
Copy constructor that creates a new VerifiableAgentName based off of theVan. |
|
| Method Summary | |
|---|---|
void |
acceptSerializer(javax.agent.JasSerializer serializer)
Every AgentName is required to have this method. |
java.lang.String |
debugString()
Returns a translated representation of this VerifiableAgentName. |
boolean |
equals(java.lang.Object o)
Compares this VerifiableAgentName with another to determine if the reports are equal. |
java.lang.String |
getAuthority()
Method getAuthority |
java.lang.String |
getKerbPrincipal()
Method getKerbPrincipal |
java.lang.String |
getLevel()
Method getLevel |
java.lang.String |
getName()
Method getName |
VerifiableAgentName |
getPreviousVan()
Method getName |
java.security.PublicKey |
getPublicKey()
Method getPublicKey |
VerifiableAgentName |
getVanOfInitiator()
This method will return the VAN of the initiator. |
int |
hashCode()
Needed if these names will be keys in hash tables. |
void |
setPreviousVan(VerifiableAgentName thePrevVan)
Method setPreviousVan |
java.lang.String |
toString()
Returns a brief representation of this VerifiableAgentName. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public VerifiableAgentNameImpl(java.lang.String theName,
java.security.PublicKey thePublicKey,
java.lang.String theAuthority,
java.lang.String theKerbPrincipal,
java.lang.String theLevel,
VerifiableAgentName thePrevVan)
theName - The unique name if this VerifiableAgentName.
thePublicKey - The PublicKey of this VerifiableAgentName.
theAuthority - The one who created this VerifiableAgentName.
theKerbPrincipal - The Kerberos Principal of this VerifiableAgentName.
theLevel - The authority level of this VerifiableAgentName.
thePrevVan - The Previous VerifiableAgentName for this VerifiableAgentName.public VerifiableAgentNameImpl(VerifiableAgentName theVan)
theVan.
theVan - The VerifiableAgentName that a new one is to be created from.| Method Detail |
public java.lang.String getName()
VerifiableAgentName
getName in interface VerifiableAgentNamepublic java.lang.String getAuthority()
VerifiableAgentName
getAuthority in interface VerifiableAgentNamepublic java.security.PublicKey getPublicKey()
VerifiableAgentName
getPublicKey in interface VerifiableAgentNamepublic java.lang.String getKerbPrincipal()
VerifiableAgentName
getKerbPrincipal in interface VerifiableAgentNamepublic VerifiableAgentName getPreviousVan()
VerifiableAgentName
getPreviousVan in interface VerifiableAgentNamepublic void setPreviousVan(VerifiableAgentName thePrevVan)
VerifiableAgentName
setPreviousVan in interface VerifiableAgentNamethePrevVan - The previous VAN of this VAN.public java.lang.String getLevel()
VerifiableAgentName
getLevel in interface VerifiableAgentNamepublic VerifiableAgentName getVanOfInitiator()
VerifiableAgentNameVANs are used to nest each VAN along the chain of request. If A initiated something, and A asks B who asks C who asks D, then D must want decide to do this request or not. Many times D will want to know who initiated the request.
getVanOfInitiator in interface VerifiableAgentNamepublic void acceptSerializer(javax.agent.JasSerializer serializer)
acceptSerializer in interface javax.agent.AgentNameserializer - should be an instance of JasSerializer which knows about VerifiableAgentNameImpl.public java.lang.String debugString()
public boolean equals(java.lang.Object o)
VerifiableAgentName are equal if their internal, private, immutable handles are equal. The publicKey is the only exception.
equals in interface javax.agent.AgentNameo - An instance of an VerifiableAgentName that is to
be compared to this VerifiableAgentName.
VerifiableAgentName are equal if their internal, private, immutable handles are equal. The publicKey is the only exception.
public int hashCode()
Because agent names are nearly always unique they should make a good key.
hashCode in interface javax.agent.AgentNamepublic java.lang.String toString()
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||