|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.iaccess.TNProtocol.iAccessNegotiation
public class iAccessNegotiation
Manages a single interaction in a negotiation within a given session. If a request is already being managed by another object, iAccessNegotiation joins to this object and awaits for the result (suspended thread on already requested credential), else it calls iAccess logical layer to get the result. In this case iAccessNegotiation can generate some counter-requests and consequently start some new interactions in new threads. iAccessNegotiation calls TNProtocol.JBOSS server methods to send requests. The object of iAccessNegotiation will finalize its work when the Result of the request (grant or deny) is taken. This class extends the abstract class java.lang.Thread, threfore always starts in a new thread.
This class encapsulates the negotiation protocol functionality as presented in the JNSM paper. The class implements AskCredentials() function with the stepwise disclosure.
More details are given to each of the functions in the class.
iAccessDispatcher
,
BasicAccessControlAlgorithm
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static int |
deny
Response value for deny. |
static int |
grant
Response value for grant. |
static int |
notReady
Response value for not ready. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
iAccessNegotiation(TRequest Request,
javax.net.ssl.SSLSocket SocketWaitingResult)
Constructor of the class. |
Method Summary | |
---|---|
long |
getCounter()
Returns the global counter of all existing interactions. |
void |
run()
|
void |
runNegotiations()
Starts negotiations on the received request. |
int |
runTNProtocol()
Runs the trust negotiation protocol that calls the core interactive access control function of the logical layer. |
int |
waitForResult()
Method is called by other threads with a same request as the current object (negotiation object). |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int grant
public static final int deny
public static final int notReady
Constructor Detail |
---|
public iAccessNegotiation(TRequest Request, javax.net.ssl.SSLSocket SocketWaitingResult)
Method Detail |
---|
public long getCounter()
public void runNegotiations()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public int runTNProtocol()
BasicAccessControlAlgorithm
public int waitForResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |