All Packages Class Hierarchy This Package Previous Next Index
Class semper.txlayer.context.TXSubContext
java.lang.Object
|
+----semper.txlayer.context.TXBaseContext
|
+----semper.txlayer.context.TXSubContext
- public class TXSubContext
- extends TXBaseContext
A TXSubContext is a "branch" of a full TXContext.
It does not offer all the functionality.
This class is normally not directly used by applications,
it is for internal use only.
-
TXSubContext(TXHostname, TXHostname, CLAddress, SituationDescription, AttributeSet, TXQueues)
- Create a SubContext
-
getMyCertificateContext()
-
-
getPeerCertificateContext()
-
-
getSubContext(CLAddress, int)
- This method creates a new TXSubContext that can be put into
a TransferTransaction.
-
getSubContext(int)
- Creates a new SubContext based on this SubContext.
TXSubContext
public TXSubContext(TXHostname peerHostname,
TXHostname myHostname,
CLAddress claddress,
SituationDescription situationDescription,
AttributeSet secAttributes,
TXQueues txq)
- Create a SubContext
- Parameters:
- peerHostname - Specifies the peer to communicate with.
- myHostname - Specifies my own hostname.
- claddress - Servers as an identifier for the use of the Commerce Layer.
- situationDescription - The description that is to be used when
negotiating certificates for secure communications
and for signing non-repudiation tokens (including
SECA specific attributes).
You can pass a situationDescription with all nulls
init, or you can fix arbitrary parameters, in which case
you should be sure that you or the peer have matching
certificates.
When this parameter has a SECAAttribute in it,
the SECAAttribute is ignored for negotiating
certificates for secure communications.
- secAttributes - Specifies the security attributes that are to be
applied to the connection.
Currently valid: Authenticity and Confidentiality
- txq - The TXQueues object that was created by the root-TXContexts.
getSubContext
public TXSubContext getSubContext(int tid)
- Creates a new SubContext based on this SubContext.
- Parameters:
- tid - A number that is appended to the stored
CLAddress and servers as a channel identifier.
- Returns:
- A new TXSubContext.
getSubContext
protected TXSubContext getSubContext(CLAddress claddress,
int tid)
- This method creates a new TXSubContext that can be put into
a TransferTransaction. The new TXSubContext is based on the TXContext.
tid and claddress are combined to form a new claddress for
the TXSubContext.
- Parameters:
- claddress - The claddress the new subcontext should be
based on.
- tid - The tid is used as a channel correlator in the way it is
used in comm and seccomm.
- Returns:
- TXSubContext A new context through communication of
transactions should take place.
getMyCertificateContext
public CertificateContext getMyCertificateContext()
- Returns:
- A clone of my own certificates that are used
in the connection. Might be null if no connection
is established.
getPeerCertificateContext
public CertificateContext getPeerCertificateContext()
- Returns:
- A clone of the peers certificates that are used
in the connection. Might be null if no connection
is established.
All Packages Class Hierarchy This Package Previous Next Index