org.iaccess.TNProtocol
Class TRequest

java.lang.Object
  extended by org.iaccess.TNProtocol.TRequest

public class TRequest
extends java.lang.Object

Defines the high level request structure used for negotiations. Any credential/service request is of type TRequest.


Field Summary
 java.lang.String[] Credentials
          Defines additional negotiation information.
 java.lang.String Identity
          Identity of an entity sending the request.
 boolean IsService
          If Request for the credential/certificate this field is false.
 java.lang.String ServiceRequest
          Service request definition.
 java.lang.String SessionID
          SessionID = String(CurrentTime) + String (Random).
 
Constructor Summary
TRequest()
          Creates a new instance of TRequest.
TRequest(java.lang.String SessionID, boolean IsService, java.lang.String ServiceRequest, java.lang.String Identity)
           
TRequest(java.lang.String SessionID, boolean IsService, java.lang.String ServiceRequest, java.lang.String Identity, java.lang.String SystemAnyValueTerm)
           
TRequest(java.lang.String SessionID, boolean IsService, java.lang.String ServiceRequest, java.lang.String Identity, java.lang.String SystemAnyValueTerm, int TCPportIn)
          TCPportIn is actually defining the listening port for this request.
TRequest(TRequest Request)
          A copying constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SessionID

public java.lang.String SessionID
SessionID = String(CurrentTime) + String (Random).


IsService

public boolean IsService
If Request for the credential/certificate this field is false.


ServiceRequest

public java.lang.String ServiceRequest
Service request definition.


Credentials

public java.lang.String[] Credentials
Defines additional negotiation information. It was originally designed for an initial set of cderentials/certificates. Since we disable an input set of credentials for a service/credential request we re-use this field for transmitting additional information of a negotiation process, such as SystemAnyValue term (Credentials[0]), and TCPPortIn for incoming responses/counter requests to a current request (Credentials[1]). One can use it for adding more negotiation information to be sent to an opponent, such as session time, type of security tokens (SAML, SPKI, X.509), etc.


Identity

public java.lang.String Identity
Identity of an entity sending the request.

Constructor Detail

TRequest

public TRequest()
Creates a new instance of TRequest. All fieldls are initialized as empty objects, IsService = "false".


TRequest

public TRequest(TRequest Request)
A copying constructor.


TRequest

public TRequest(java.lang.String SessionID,
                boolean IsService,
                java.lang.String ServiceRequest,
                java.lang.String Identity)

TRequest

public TRequest(java.lang.String SessionID,
                boolean IsService,
                java.lang.String ServiceRequest,
                java.lang.String Identity,
                java.lang.String SystemAnyValueTerm)

TRequest

public TRequest(java.lang.String SessionID,
                boolean IsService,
                java.lang.String ServiceRequest,
                java.lang.String Identity,
                java.lang.String SystemAnyValueTerm,
                int TCPportIn)
TCPportIn is actually defining the listening port for this request. By default TCPportIn is the second argument of the optional String[] Credentials of the request.