|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elib.serial.BaseLoader | +--net.captp.jcomm.Introducer
Untamed:
Field Summary | |
private ESecureRandom |
myEntropy
|
private LocatorUnum |
myLocatorUnum
|
private NetConfig |
myNetConfig
Changes by going on-the-air |
private CapTPMgr |
myOptCapTPMgr
if onTheAir |
private SwissTable |
myOptSwissTable
if identified |
private KeyPair |
myOptVatIdentity
if identified |
Fields inherited from interface org.erights.e.elib.serial.PassByProxy |
HONORARY, HONORED_NAMES |
Constructor Summary | |
private |
Introducer(ConstMap optProps,
ESecureRandom entropy)
|
Method Summary | |
void |
__printOn(TextWriter out)
Enabled: |
Object |
get(String uriBody)
Enabled: Same as sturdyFromURI, but named get/1 so the introducer can be used as a URIGetter. |
(package private) CapTPMgr |
getCapTPMgr()
|
LocatorUnum |
getLocatorUnum()
Enabled: |
NetConfig |
getNetConfig()
Enabled: Configuration parameter read as a JavaBeans property. |
(package private) SwissTable |
getSwissTable()
For use by the SturdyRefMaker and IdentityMgr |
String |
getVatID()
Enabled: The fingerprint of the public key of this Introducers identity (and therefore, this vat's identity). |
boolean |
hasIdentity()
Enabled: Is this Introducer's identity (and therefore, this vat's identity) already determined? |
boolean |
isOnTheAir()
Enabled: Is this vat able to send and receive inter-vat messages? |
static Object[] |
makePair(ConstMap optProps,
ESecureRandom entropy,
Timer timer)
Enabled: Returns a pair of a new Introducer, a corresponding IdentityMgr. |
ConstList |
negotiable()
Enabled: The list of protocols I can negotiate to speak. |
KeyPair |
newVatIdentity()
Enabled: If no identity has yet been determined, generate a new one, and return its public/private key pair. |
ConstList |
onTheAir()
Enabled: Become able to communicate. |
Object[] |
optUncall(Object obj)
Enabled: |
void |
setNetConfig(NetConfig newNetConfig)
Enabled: Configuration parameter set as a JavaBeans property, so long as we are off the air. |
void |
setVatIdentity(KeyPair identity)
Enabled: If no identity has yet been determined, become identified as the identity represented by this key pair. |
SturdyRef |
sturdyFromURI(String uri)
Enabled: Produce a SturdyRef given a URI. |
String |
sturdyToURI(SturdyRef ref)
Enabled: Produce a URI given a SturdyRef. |
Methods inherited from class org.erights.e.elib.serial.BaseLoader |
getOptWrappingUncall, optUnget, ungetToUncall |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private NetConfig myNetConfig
private final ESecureRandom myEntropy
private final LocatorUnum myLocatorUnum
private KeyPair myOptVatIdentity
private SwissTable myOptSwissTable
private CapTPMgr myOptCapTPMgr
Constructor Detail |
private Introducer(ConstMap optProps, ESecureRandom entropy)
Method Detail |
public static Object[] makePair(ConstMap optProps, ESecureRandom entropy, Timer timer)
public NetConfig getNetConfig()
public void setNetConfig(NetConfig newNetConfig)
public boolean hasIdentity()
public KeyPair newVatIdentity()
This pair conveys the authority to claim to be this vat, so guard it well.
SecurityException
- if an identity has already been
determined.public void setVatIdentity(KeyPair identity)
To implement identity-persistence, the birth incarnation of a vat should do a newVatIdentity and remember the resulting key pair. Reincarnations of the "same" vat should then do a setVatIdentity with the saved identity, in order to be the reincarnation of the previous vat.
SecurityException
- if an identity has already been
determined.SwissTable getSwissTable()
public String getVatID()
An identity must have already been determined.
public boolean isOnTheAir()
public ConstList onTheAir() throws UnknownHostException, IOException
Change NetConfig according to the listen addresses we actually acquired. Return the list of negotiable protocols.
If not yet identified, this will privately generate a new vat identity, but not reveal it through any public protocol. Therefore, applications that wish to do their own identity-persistence must first call either newVatIdentity() or setVatIdentity(..).
UnknownHostException
IOException
CapTPMgr getCapTPMgr()
public LocatorUnum getLocatorUnum()
public SturdyRef sturdyFromURI(String uri) throws MalformedURLException
uri
- An E format ("<cap://...>") URI string referring to
some object.
MalformedURLException
public String sturdyToURI(SturdyRef ref) throws MalformedURLException
ref
- The SturdyRef whose URI is desired
MalformedURLException
public ConstList negotiable()
public Object get(String uriBody)
get
in interface Loader
public Object[] optUncall(Object obj)
optUncall
in interface Uncaller
obj
-
public void __printOn(TextWriter out) throws IOException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |