gnu.inet.util

Class SaslPlain

Implemented Interfaces:
SaslClient

public class SaslPlain
extends java.lang.Object
implements SaslClient

SASL mechanism for PLAIN.

Author:
Chris Burdess

Constructor Summary

SaslPlain(String username, String password)

Method Summary

void
dispose()
byte[]
evaluateChallenge(byte[] challenge)
String
getMechanismName()
Object
getNegotiatedProperty(String name)
boolean
hasInitialResponse()
boolean
isComplete()
byte[]
unwrap(byte[] incoming, int off, int len)
byte[]
wrap(byte[] outgoing, int off, int len)

Constructor Details

SaslPlain

public SaslPlain(String username,
                 String password)

Method Details

dispose

public void dispose()


evaluateChallenge

public byte[] evaluateChallenge(byte[] challenge)
            throws SaslException


getMechanismName

public String getMechanismName()


getNegotiatedProperty

public Object getNegotiatedProperty(String name)


hasInitialResponse

public boolean hasInitialResponse()


isComplete

public boolean isComplete()


unwrap

public byte[] unwrap(byte[] incoming,
                     int off,
                     int len)
            throws SaslException


wrap

public byte[] wrap(byte[] outgoing,
                   int off,
                   int len)
            throws SaslException


© Copyright 2003 The Free Software Foundation, all rights reserved