com.sshtools.j2ssh.transport.hmac
Class SshHmacFactory

java.lang.Object
  |
  +--com.sshtools.j2ssh.transport.hmac.SshHmacFactory

public class SshHmacFactory
extends java.lang.Object

This factory object creates instances of SshHmac objects. The standard algorithms are supported as well as additional classes described in the ssh.xml configuration file. These algorithms must follow the extensibility naming convention as described in the SSH protocol specification (i.e algorithm@company.com).

Version:
1.0
Author:
Lee David Painter ( lee@sshtools.com )

Field Summary
static java.lang.String HMAC_SHA
          The hmac-sha1 method
 
Constructor Summary
protected SshHmacFactory()
          Constructor for the SshHmacFactory object
 
Method Summary
static java.lang.String getDefaultHmac()
          Gets the default message authentication method
static java.util.List getSupportedMacs()
          Gets the supported message authentication methods
static SshHmac newInstance(java.lang.String methodName)
          Creates a new instance of the message autentication method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HMAC_SHA

public static final java.lang.String HMAC_SHA
The hmac-sha1 method

See Also:
Constant Field Values
Constructor Detail

SshHmacFactory

protected SshHmacFactory()
Constructor for the SshHmacFactory object

Method Detail

getDefaultHmac

public static final java.lang.String getDefaultHmac()
Gets the default message authentication method

Returns:

getSupportedMacs

public static java.util.List getSupportedMacs()
Gets the supported message authentication methods

Returns:
The supported message authentication methods

newInstance

public static SshHmac newInstance(java.lang.String methodName)
                           throws AlgorithmNotSupportedException
Creates a new instance of the message autentication method

Parameters:
methodName - The method name
Returns:
The new instance
Throws:
AlgorithmNotSupportedException - Thrown if the method is not supported


Copyright © 2002 Sshtools.com. All Rights Reserved.