gnu.crypto.key

Class KeyAgreementFactory


public class KeyAgreementFactory
extends Object

A Factory class to generate key agreement protocol handlers.
Version:
$Revision: 1.3 $

Method Summary

static Set
getNames()
Returns a Set of key agreement protocol names supported by this Factory.
static IKeyAgreementParty
getPartyAInstance(String name)
Returns an instance of a key agreeent protocol handler, for party A in a two-party A..B exchange, given the canonical name of this protocol.
static IKeyAgreementParty
getPartyBInstance(String name)
Returns an instance of a key agreeent protocol handler, for party B in a two-party A..B exchange, given the canonical name of this protocol.

Method Details

getNames

public static final Set getNames()
Returns a Set of key agreement protocol names supported by this Factory.
Returns:
a Set of key agreement protocol names (Strings).

getPartyAInstance

public static IKeyAgreementParty getPartyAInstance(String name)
Returns an instance of a key agreeent protocol handler, for party A in a two-party A..B exchange, given the canonical name of this protocol. Party A is usually the initiator of the exchange.
Parameters:
name - the case-insensitive key agreement protocol name.
Returns:
an instance of the key agreement protocol handler for party A, or null if none found.

getPartyBInstance

public static IKeyAgreementParty getPartyBInstance(String name)
Returns an instance of a key agreeent protocol handler, for party B in a two-party A..B exchange, given the canonical name of this protocol.
Parameters:
name - the case-insensitive key agreement protocol name.
Returns:
an instance of the key agreement protocol handler for party B, or null if none found.

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.