|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--webfunds.utils.Debug
|
+--webfunds.sox.SimpleIssuer
This class is a "SOX Agent" that passes basic requests to the Issuer. It should be passive until requested.
| Field Summary | |
protected BasicAgent |
basicAgent
The agent communicating to the server (at the "basic" level) |
protected CommsAgent |
commsAgent
The agent communicating to the server (at the "comms" level) Not used? |
protected java.security.PublicKey |
commsKey
The communications certificate (key) for this current session. |
protected long |
deviation
|
protected boolean |
isDead
|
protected long |
lastsync
|
protected java.lang.String |
logfix
|
protected java.lang.String |
name
The name of the issuer. |
protected java.lang.String |
reason
|
protected int |
reqNo
|
protected java.security.cert.Certificate |
serverCert
The [server] certificate for this physical server. |
protected java.security.cert.Certificate |
signer
The PKI is evolving... |
protected long |
timediff
This is the difference between local time and the server's time. |
protected long |
timeLastRequest
|
| Fields inherited from class webfunds.utils.Debug |
bug,
debugAll,
logfix |
| Constructor Summary | |
SimpleIssuer(java.lang.String name,
java.security.cert.Certificate signer,
CommsAgent agent)
|
|
SimpleIssuer(java.lang.String name,
java.security.cert.Certificate signer,
CommsAgent agent,
java.io.PrintWriter bug)
Create a new SimpleIssuer object The SimpleIssuer object will normally be cached by the caller, but is not usefully stored on disk. |
|
| Method Summary | |
void |
checkSync()
Check the sync is reasonably new. |
java.lang.String |
getDead()
|
java.lang.String |
getName()
The name of this issuer |
void |
getReady()
Do the things necessary for being ready for a request. |
long |
getTimeDeviation()
A likely deviation. |
long |
getTimeDifference()
Undefined how accurate it is. |
boolean |
isDead()
|
byte[] |
request(Request request)
Issue a request. |
void |
setAlive()
|
void |
setDead()
|
void |
setDead(java.lang.String s)
|
protected void |
timesync()
Do a timesync request to check on the issuer time. |
java.lang.String |
toString()
|
| Methods inherited from class webfunds.utils.Debug |
debug,
debug,
debug,
debug,
err,
getDebug,
logend,
logmsg,
logstart,
logword |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected java.lang.String logfix
protected java.lang.String name
protected CommsAgent commsAgent
protected BasicAgent basicAgent
protected java.security.cert.Certificate signer
protected java.security.cert.Certificate serverCert
protected java.security.PublicKey commsKey
protected int reqNo
protected boolean isDead
protected java.lang.String reason
protected long timediff
protected long deviation
protected long lastsync
protected long timeLastRequest
| Constructor Detail |
public SimpleIssuer(java.lang.String name,
java.security.cert.Certificate signer,
CommsAgent agent,
java.io.PrintWriter bug)
name - our name for the issuersigner - the certificate which signs this issuers certificateagent - the comms agent that sends requests at the transport layer
public SimpleIssuer(java.lang.String name,
java.security.cert.Certificate signer,
CommsAgent agent)
| Method Detail |
public void getReady()
throws SOXIssuerException,
SOXLaterException
public java.lang.String getName()
public byte[] request(Request request)
throws SOXIssuerException,
SOXLaterException
public boolean isDead()
public void setDead()
public void setDead(java.lang.String s)
public void setAlive()
public java.lang.String getDead()
public long getTimeDifference()
public long getTimeDeviation()
protected void timesync()
throws SOXIssuerException,
SOXLaterException
public void checkSync()
throws SOXIssuerException,
SOXLaterException
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||