Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.crypto.sasl.crammd5
Class CramMD5AuthInfoProvider  view CramMD5AuthInfoProvider download CramMD5AuthInfoProvider.java

java.lang.Object
  extended bygnu.javax.crypto.sasl.crammd5.CramMD5AuthInfoProvider
All Implemented Interfaces:
gnu.javax.crypto.sasl.IAuthInfoProvider

public class CramMD5AuthInfoProvider
extends java.lang.Object
implements gnu.javax.crypto.sasl.IAuthInfoProvider

The CRAM-MD5 mechanism authentication information provider implementation.


Field Summary
private  PasswordFile passwordFile
           
 
Constructor Summary
CramMD5AuthInfoProvider()
           
 
Method Summary
 void activate(java.util.Map context)
          Activates (initialises) this provider instance.
 boolean contains(java.lang.String userName)
          Checks if a user with a designated name is known to this provider.
 java.util.Map getConfiguration(java.lang.String mode)
          A provider may operate in more than mode; e.g.
 java.util.Map lookup(java.util.Map userID)
          Returns a collection of information about a designated user.
 void passivate()
          Passivates (releases) this provider instance.
 void update(java.util.Map userCredentials)
          Updates the credentials of a designated user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

passwordFile

private PasswordFile passwordFile
Constructor Detail

CramMD5AuthInfoProvider

public CramMD5AuthInfoProvider()
Method Detail

activate

public void activate(java.util.Map context)
              throws javax.security.sasl.AuthenticationException
Description copied from interface: gnu.javax.crypto.sasl.IAuthInfoProvider
Activates (initialises) this provider instance. SHOULD be the first method invoked on the provider.

Specified by:
activate in interface gnu.javax.crypto.sasl.IAuthInfoProvider

passivate

public void passivate()
               throws javax.security.sasl.AuthenticationException
Description copied from interface: gnu.javax.crypto.sasl.IAuthInfoProvider
Passivates (releases) this provider instance. SHOULD be the last method invoked on the provider. Once it is done, no other method may be invoked on the same instance before it is activated agains.

Specified by:
passivate in interface gnu.javax.crypto.sasl.IAuthInfoProvider

contains

public boolean contains(java.lang.String userName)
                 throws javax.security.sasl.AuthenticationException
Description copied from interface: gnu.javax.crypto.sasl.IAuthInfoProvider
Checks if a user with a designated name is known to this provider.

Specified by:
contains in interface gnu.javax.crypto.sasl.IAuthInfoProvider

lookup

public java.util.Map lookup(java.util.Map userID)
                     throws javax.security.sasl.AuthenticationException
Description copied from interface: gnu.javax.crypto.sasl.IAuthInfoProvider
Returns a collection of information about a designated user. The contents of the returned map is provider-specific of name-to-value mappings.

Specified by:
lookup in interface gnu.javax.crypto.sasl.IAuthInfoProvider

update

public void update(java.util.Map userCredentials)
            throws javax.security.sasl.AuthenticationException
Description copied from interface: gnu.javax.crypto.sasl.IAuthInfoProvider
Updates the credentials of a designated user.

Specified by:
update in interface gnu.javax.crypto.sasl.IAuthInfoProvider

getConfiguration

public java.util.Map getConfiguration(java.lang.String mode)
                               throws javax.security.sasl.AuthenticationException
Description copied from interface: gnu.javax.crypto.sasl.IAuthInfoProvider
A provider may operate in more than mode; e.g. SRP-II caters for user credentials computed in more than one message digest algorithm. This method returns the set of name-to-value bindings describing the mode of the provider.

Specified by:
getConfiguration in interface gnu.javax.crypto.sasl.IAuthInfoProvider