All Packages Class Hierarchy This Package Previous Next Index
Class semper.seccomm.SecComManager
java.lang.Object
|
+----semper.seccomm.SecComManager
- public class SecComManager
- extends Object
- implements SecComPointConstants
Class that provides a static method to create SecComPoints.
SecComManager is never instantiated.
- Version:
- $Revision: 1.9 $ $Date: 1998/03/05 15:50:16 $
-
SecComManager()
-
-
doNegotiation(SecComPoint)
- Static method to do some kind of security attributes negotiation between
the peers.
-
init()
- Init the SecComManager.
-
isInitialized()
- Check whether the module is initialized.
-
secComPoint(int, SecComPointAddress)
- Create a SecComPoint.
SecComManager
public SecComManager()
isInitialized
public static synchronized boolean isInitialized()
- Check whether the module is initialized.
- Returns:
- true if and only if fully initialized;
init
public static synchronized void init() throws SecComPointException
- Init the SecComManager.
- Throws: SecComPointException
- if encountered an error
secComPoint
public static SecComPoint secComPoint(int type,
SecComPointAddress address) throws SecComPointException
- Create a SecComPoint. According to the type and
the address the proper service module is chosen
to provide the desired services.
- Parameters:
- type - Specify the type of the desired SecComPoint, either
SECCOMPOINT_INITIATOR, SECCOMPOINT_RECEIVER or
SECCOMPOINT_SERVER. In addition,
SECCOMPOINT_CHANNELINITIATOR is recognized as
a special initiator for SecChannels to allow
for proper setup.
- address - The address (including security
attributes) to open the SecComPoint to if this is an
initiator SecComPoint, our own address if this is a
receiver or server SecComPoint.
- Throws: SecComPointException
- if encountered an error
on creating the SecComPoint
doNegotiation
public static void doNegotiation(SecComPoint secComPoint) throws SecComPointException
- Static method to do some kind of security attributes negotiation between
the peers. Only intended for internal use... .
Up to now, it simply exchanges the security attributes. That is, when peer A has
attributes a and c, and peer B has attributes b, this method exchanges them so
that A uses b and B uses a and c.
- Parameters:
- secComPoint - The SecComPoint to use for negotiation
- Throws: SecComPointException
- When communication problems arise or the protocol
is not satisfied.
All Packages Class Hierarchy This Package Previous Next Index