gnu.crypto.sasl.srp

Class IALG

Implemented Interfaces:
Cloneable

public final class IALG
extends Object
implements Cloneable

A Factory class that returns IALG (Integrity Algorithm) instances that operate as described in the draft-burdis-cat-sasl-srp-04 and later.
Version:
$Revision: 1.5 $

Method Summary

Object
clone()
byte[]
doFinal()
(package private) static IALG
getInstance(String algorithm)
Returns an instance of a SASL-SRP IALG implementation.
void
init(KDF kdf)
int
length()
Returns the length (in bytes) of this SASL SRP Integrity Algorithm.
void
update(byte[] data)
void
update(byte[] data, int offset, int length)

Method Details

clone

public Object clone()
            throws CloneNotSupportedException

doFinal

public byte[] doFinal()

getInstance

(package private) static IALG getInstance(String algorithm)
            throws SaslException
Returns an instance of a SASL-SRP IALG implementation.
Parameters:
algorithm - the name of the HMAC algorithm.
Returns:
an instance of this object.

init

public void init(KDF kdf)
            throws SaslException

length

public int length()
Returns the length (in bytes) of this SASL SRP Integrity Algorithm.
Returns:
the length, in bytes, of this integrity protection algorithm.

update

public void update(byte[] data)

update

public void update(byte[] data,
                   int offset,
                   int length)

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