|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.w3c.www.protocol.http.HttpConnection
|
+--org.w3c.www.protocol.http.HttpBasicConnection
|
+--org.w3c.www.protocol.http.HttpIDMConnection
| Field Summary | |
protected boolean |
cached
|
org.ssonet.net.CertificateListener |
certificateListener
the default certificate listener |
idman.mngt.Context |
context
The connection context used in the id manager |
static boolean |
debug
|
static boolean |
debugProfiling
|
protected int |
id
|
(package private) java.net.InetAddress |
inetaddr
|
(package private) java.io.InputStream |
input
|
protected org.w3c.util.LRUAble |
lru_next
|
protected org.w3c.util.LRUAble |
lru_prev
|
protected java.lang.Object |
monitor
|
(package private) java.io.OutputStream |
output
|
(package private) org.w3c.www.mime.MimeParser |
parser
|
(package private) int |
port
|
(package private) org.w3c.www.mime.MimeParserFactory |
reply_factory
|
protected org.w3c.www.protocol.http.HttpServer |
server
|
(package private) static java.lang.reflect.Method |
sock_m
|
(package private) java.lang.Thread |
th
|
(package private) int |
timeout
|
| Fields inherited from interface org.ssonet.net.CertificateListener |
INVALID, NOT_TESTED, VALID |
| Fields inherited from interface org.ssonet.net.ConnectionListener |
FINISHED_STATE, INIT_STATE, MECHANISMS_NEGOTIATION, NOT_STARTED_STATE, RUNNING_STATE, SECURITY_GOAL_NEGOTIATION |
| Constructor Summary | |
(package private) |
HttpIDMConnection(org.w3c.www.protocol.http.HttpServer server,
int id,
java.net.InetAddress addr,
int port,
int timeout,
org.w3c.www.mime.MimeParserFactory reply_factory)
Create a new connection. |
(package private) |
HttpIDMConnection(org.w3c.www.protocol.http.HttpServer server,
int id,
java.net.InetAddress addr,
int port,
int timeout,
org.w3c.www.mime.MimeParserFactory reply_factory,
java.lang.String role)
|
| Method Summary | |
(package private) static void |
|
int |
checkCertificate(org.ssonet.net.SSONETContext context,
java.security.cert.X509Certificate cert)
Check Servers certificate, register the certifiate with the id manager, and find out clients pseudonym. |
void |
close()
|
void |
connectionStateChanged(org.ssonet.net.SSONETContext c,
int state)
|
void |
contextChanged(org.ssonet.net.SSONETContext c)
Notifies about context changes. |
protected idman.mngt.Context |
createContext(java.lang.String role)
Creates a context for this connection |
boolean |
decideSecurityGoal(int securityGoal,
org.ssonet.net.ActionConfiguration ownConfiguration,
org.ssonet.net.SSONETContext context)
Handles a solvable conflict during security goal negotiation |
boolean |
doWarning(java.lang.String chainname,
idman.rules.Condition cond,
java.lang.String id,
byte[] content,
idman.mngt.Context context,
java.lang.String parameter)
Receive warnings from ChainEvaluator for finding the Pseudonym for receiving requests. |
org.w3c.util.LRUAble |
getNext()
|
java.io.OutputStream |
getOutputStream()
Get the connection output stream. |
org.w3c.www.mime.MimeParser |
getParser()
Get the MIME parser to read from this connection. |
org.w3c.util.LRUAble |
getPrev()
|
protected org.w3c.www.protocol.http.HttpServer |
getServer()
|
void |
markIdle(boolean close)
The connection is now idle again. |
boolean |
markUsed()
Mark this connection as being used. |
void |
negotiationRequestReceived(org.ssonet.net.SSONETContext context,
int negotiationType)
Handles a new negotiation request. |
void |
notifyClose(java.io.InputStream in)
The entity stream we observe has been closed. |
void |
notifyEOF(java.io.InputStream in)
The entity stream we observe has reached its end. |
void |
notifyFailure(java.io.InputStream in)
The entity stream we were to observe refuse to be observed. |
void |
notifyInputAvailable(java.io.InputStream in)
Some data available on input, while writing to the server. |
void |
replaceContext(org.ssonet.net.SSONETContext o,
org.ssonet.net.SSONETContext n)
Method of SSONETContextListener. |
void |
setNext(org.w3c.util.LRUAble)
|
void |
setPrev(org.w3c.util.LRUAble)
|
java.lang.String |
toString()
Print this connection into a String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean debug
public static boolean debugProfiling
public idman.mngt.Context context
public org.ssonet.net.CertificateListener certificateListener
protected java.lang.Object monitor
static java.lang.reflect.Method sock_m
org.w3c.www.mime.MimeParser parser
java.io.OutputStream output
java.io.InputStream input
org.w3c.www.mime.MimeParserFactory reply_factory
java.lang.Thread th
java.net.InetAddress inetaddr
int port
int timeout
protected int id
protected org.w3c.util.LRUAble lru_next
protected org.w3c.util.LRUAble lru_prev
protected org.w3c.www.protocol.http.HttpServer server
protected boolean cached
| Constructor Detail |
HttpIDMConnection(org.w3c.www.protocol.http.HttpServer server,
int id,
java.net.InetAddress addr,
int port,
int timeout,
org.w3c.www.mime.MimeParserFactory reply_factory)
throws java.io.IOException
HttpIDMConnection(org.w3c.www.protocol.http.HttpServer server,
int id,
java.net.InetAddress addr,
int port,
int timeout,
org.w3c.www.mime.MimeParserFactory reply_factory,
java.lang.String role)
throws java.io.IOException
| Method Detail |
public java.lang.String toString()
toString in class org.w3c.www.protocol.http.HttpBasicConnectionpublic void notifyEOF(java.io.InputStream in)
notifyEOF in interface org.w3c.www.http.HttpStreamObservernotifyEOF in class org.w3c.www.protocol.http.HttpBasicConnectionin - The stream that has reached its end of file.public void notifyFailure(java.io.InputStream in)
notifyFailure in interface org.w3c.www.http.HttpStreamObservernotifyFailure in class org.w3c.www.protocol.http.HttpBasicConnectionin - The stream that has been closed.public void notifyClose(java.io.InputStream in)
notifyClose in interface org.w3c.www.http.HttpStreamObservernotifyClose in class org.w3c.www.protocol.http.HttpBasicConnectionin - The stream that has been closed.public boolean markUsed()
Some assumptions are checked before handing out the connection for use, which can throw an RuntimeException.
markUsed in class org.w3c.www.protocol.http.HttpBasicConnectionjava.lang.RuntimeException - If the connection is in an invalid state.public void markIdle(boolean close)
markIdle in class org.w3c.www.protocol.http.HttpBasicConnectionclose - Should this connection be physically closed (it is not
reusable), or should we try to keep track of it for later reuse.
java.lang.RuntimeException - If the connection is in an invalid state.public void notifyInputAvailable(java.io.InputStream in)
Take any appropriate action.
notifyInputAvailable in class org.w3c.www.protocol.http.HttpBasicConnectionpublic org.w3c.www.mime.MimeParser getParser()
getParser in class org.w3c.www.protocol.http.HttpBasicConnectionjava.lang.RuntimeException - If the connection was not connected.public java.io.OutputStream getOutputStream()
getOutputStream in class org.w3c.www.protocol.http.HttpBasicConnectionjava.lang.RuntimeException - If the connection was not previously opened.protected idman.mngt.Context createContext(java.lang.String role)
public int checkCertificate(org.ssonet.net.SSONETContext context,
java.security.cert.X509Certificate cert)
checkCertificate in interface org.ssonet.net.CertificateListener
public boolean doWarning(java.lang.String chainname,
idman.rules.Condition cond,
java.lang.String id,
byte[] content,
idman.mngt.Context context,
java.lang.String parameter)
doWarning in interface idman.rules.ChainEvaluationListener
public void negotiationRequestReceived(org.ssonet.net.SSONETContext context,
int negotiationType)
negotiationRequestReceived in interface org.ssonet.net.ConnectionListenercontext - the SSONETContext used by the server for this
request.negotiationType - SECURITY_GOAL_NEGOTIATION if the negotiation
requested is a security goal (and mechanisms) negotiation,
MECHANISMS_NEGOTIATION if the negotiation requested is only a
mechanisms negotiation.
public boolean decideSecurityGoal(int securityGoal,
org.ssonet.net.ActionConfiguration ownConfiguration,
org.ssonet.net.SSONETContext context)
decideSecurityGoal in interface org.ssonet.net.ConnectionListener
public void replaceContext(org.ssonet.net.SSONETContext o,
org.ssonet.net.SSONETContext n)
replaceContext in interface org.ssonet.net.SSONETContextListenerpublic void contextChanged(org.ssonet.net.SSONETContext c)
contextChanged in interface org.ssonet.net.SSONETContextListener
public void connectionStateChanged(org.ssonet.net.SSONETContext c,
int state)
connectionStateChanged in interface org.ssonet.net.ConnectionListenerpublic void close()
close in class org.w3c.www.protocol.http.HttpConnectionstatic void()
public org.w3c.util.LRUAble getNext()
getNext in interface org.w3c.util.LRUAblepublic org.w3c.util.LRUAble getPrev()
getPrev in interface org.w3c.util.LRUAblepublic void setNext(org.w3c.util.LRUAble)
setNext in interface org.w3c.util.LRUAblepublic void setPrev(org.w3c.util.LRUAble)
setPrev in interface org.w3c.util.LRUAbleprotected final org.w3c.www.protocol.http.HttpServer getServer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||