com.sun.management.snmp.usm
Class SnmpUsmAlgorithmManager

java.lang.Object
  extended by com.sun.management.snmp.usm.SnmpUsmAlgorithmManager

public class SnmpUsmAlgorithmManager
extends Object

Usm Algorithm manager. An algorithm manager manages SnmpUsmAlgorithm. Algorithm can be added or removed. The manager is used by the SnmpUsmLcd to :

Since:
Java DMK 5.1

Constructor Summary
SnmpUsmAlgorithmManager()
           
 
Method Summary
 void addAlgorithm(SnmpUsmAlgorithm a)
          Adds an algorithm.
 SnmpUsmAlgorithm getAlgorithm(String name)
          Gets the associated algorithm.
 String[] getManagedAlgorithms()
          Gets the list of registered algorithm names.
 SnmpUsmAlgorithm removeAlgorithm(String name)
          Removes the algorithm associated with the passed name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpUsmAlgorithmManager

public SnmpUsmAlgorithmManager()
Method Detail

getManagedAlgorithms

public String[] getManagedAlgorithms()
Gets the list of registered algorithm names.

Returns:
The registered algorithm names.

addAlgorithm

public void addAlgorithm(SnmpUsmAlgorithm a)
Adds an algorithm. If an algorithm with the same name exists, is is replaced by the new one.

Parameters:
a - The algorithm to be added.

removeAlgorithm

public SnmpUsmAlgorithm removeAlgorithm(String name)
Removes the algorithm associated with the passed name. Does nothing if it doesn't exist.

Parameters:
name - The name of the algorithm to be removed.
Returns:
The algorithm to be removed.

getAlgorithm

public SnmpUsmAlgorithm getAlgorithm(String name)
Gets the associated algorithm.

Parameters:
name - The name of the algorithm to retrieve.
Returns:
The associated algorithm.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.