com.sun.management.snmp.usm
Class SnmpUsmHmacSha

java.lang.Object
  extended by com.sun.management.snmp.usm.SnmpUsmHmacAlgorithm
      extended by com.sun.management.snmp.usm.SnmpUsmHmacSha
All Implemented Interfaces:
SnmpUsmAlgorithm, SnmpUsmAuthAlgorithm

public class SnmpUsmHmacSha
extends SnmpUsmHmacAlgorithm

Provides the parameters needed by SnmpUsmHmacAlgorithm to instantiate an Hmac SHA algorithm.

Since:
Java DMK 5.1

Field Summary
static String HMAC_SHA_AUTH
          Algorithm name as defined in rfc 2574, "usmHMACSHAAuthProtocol".
static int KEY_SIZE
          Key size as defined in rfc 2574, 20.
static int SHA_BLOCKSIZE
          Block size as defined in rfc 2574, 64.
 
Constructor Summary
SnmpUsmHmacSha()
           
 
Method Summary
 String getAlgorithm()
          Gets the unique algorithm name.
 int getDeltaSize()
          Gets the delta size.
 String getOid()
          Gets the associated OID.
 
Methods inherited from class com.sun.management.snmp.usm.SnmpUsmHmacAlgorithm
calculateAuthDelta, calculateNewAuthKey, calculateNewPrivKey, calculatePrivDelta, localizeAuthKey, localizePrivKey, password_to_key, sign, toString, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.management.snmp.usm.SnmpUsmAlgorithm
getAlgorithm
 

Field Detail

HMAC_SHA_AUTH

public static final String HMAC_SHA_AUTH
Algorithm name as defined in rfc 2574, "usmHMACSHAAuthProtocol".

See Also:
Constant Field Values

SHA_BLOCKSIZE

public static final int SHA_BLOCKSIZE
Block size as defined in rfc 2574, 64.

See Also:
Constant Field Values

KEY_SIZE

public static final int KEY_SIZE
Key size as defined in rfc 2574, 20.

See Also:
Constant Field Values
Constructor Detail

SnmpUsmHmacSha

public SnmpUsmHmacSha()
Method Detail

getOid

public String getOid()
Gets the associated OID.

Returns:
The oid 1.3.6.1.6.3.10.1.1.3

getDeltaSize

public int getDeltaSize()
Gets the delta size.

Specified by:
getDeltaSize in interface SnmpUsmAlgorithm
Specified by:
getDeltaSize in class SnmpUsmHmacAlgorithm
Returns:
The delta size.

getAlgorithm

public String getAlgorithm()
Description copied from interface: SnmpUsmAlgorithm
Gets the unique algorithm name.

Specified by:
getAlgorithm in interface SnmpUsmAlgorithm
Returns:
Algorithm name.

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.