|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.platform.VerifiableAgentNameImpl
The implementation of a name created by the VerifiableAgentNamingService.
VerifiableAgentNamingService
, Serialized FormConstructor 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. |
static java.lang.String |
Copyright()
Gets the copyright of this class. |
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 VerifiableAgentName
com.ibm.able.platform.VerifiableAgentName
public java.lang.String getAuthority()
VerifiableAgentName
getAuthority
in interface VerifiableAgentName
com.ibm.able.platform.VerifiableAgentName
public java.security.PublicKey getPublicKey()
VerifiableAgentName
getPublicKey
in interface VerifiableAgentName
com.ibm.able.platform.VerifiableAgentName
public java.lang.String getKerbPrincipal()
VerifiableAgentName
getKerbPrincipal
in interface VerifiableAgentName
com.ibm.able.platform.VerifiableAgentName
public VerifiableAgentName getPreviousVan()
VerifiableAgentName
getPreviousVan
in interface VerifiableAgentName
com.ibm.able.platform.VerifiableAgentName
public void setPreviousVan(VerifiableAgentName thePrevVan)
VerifiableAgentName
setPreviousVan
in interface VerifiableAgentName
com.ibm.able.platform.VerifiableAgentName
The
- previous VAN of this VAN.public java.lang.String getLevel()
VerifiableAgentName
getLevel
in interface VerifiableAgentName
com.ibm.able.platform.VerifiableAgentName
public VerifiableAgentName getVanOfInitiator()
VerifiableAgentName
VANs 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 VerifiableAgentName
com.ibm.able.platform.VerifiableAgentName
public void acceptSerializer(javax.agent.JasSerializer serializer)
acceptSerializer
in interface javax.agent.AgentName
serializer
- should be an instance of JasSerializer which knows about VerifiableAgentNameImpl.public java.lang.String debugString()
public static java.lang.String Copyright()
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.AgentName
equals
in class java.lang.Object
o
- 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.AgentName
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |