java.lang.Object
cryptix.sasl.srp.SRPAuthInfoProvider
- All Implemented Interfaces:
- cryptix.sasl.AuthInfoServices, cryptix.sasl.SaslParams, SRPParams
- public class SRPAuthInfoProvider
- extends java.lang.Object
- implements cryptix.sasl.AuthInfoServices, cryptix.sasl.SaslParams, SRPParams
The SRP mechanism authentication information provider implementation.
- Since:
- 0.8.9
- Version:
- $Revision: 1.1 $
Fields inherited from interface cryptix.sasl.SaslParams |
AES_CALG, ANONYMOUS_MECHANISM, AUTH_INFO_PROVIDER_PKGS, BUFFER_LIMIT, CRAM_MD5_MECHANISM, FOUR_BYTE_HEADER_LIMIT, HMAC_MD5_IALG, HMAC_SHA_IALG, MD5_MDA, ONE_BYTE_HEADER_LIMIT, OTP_MECHANISM, PASSWORD, PLAIN_MECHANISM, RIJNDAEL_CALG, RIPEMD_160_MDA, SHA_MDA, SM2_MECHANISM, SRP_MECHANISM, TWO_BYTE_HEADER_LIMIT, TWOFISH_CALG, USERNAME |
Fields inherited from interface cryptix.sasl.srp.SRPParams |
AES, AVAILABLE_OPTIONS, BLOWFISH, CAST5, CHOSEN_OPTIONS, CLIENT_EVIDENCE, CLIENT_PUBLIC_KEY, CONFIDENTIALITY_ALGORITHMS, CONFIG_NDX_FIELD, DEFAULT_CONFIDENTIALITY, DEFAULT_INTEGRITY, DEFAULT_MANDATORY, DEFAULT_PASSWORD_FILE, DEFAULT_REPLAY_DETECTION, FIELD_GENERATOR, HMAC_MD5, HMAC_SHA1, INTEGRITY_ALGORITHMS, MANDATORY_CONFIDENTIALITY, MANDATORY_INTEGRITY, MANDATORY_NONE, MANDATORY_REPLAY_DETECTION, MD_NAME_FIELD, PASSWORD_FILE, PASSWORD_VERIFIER, SALT_FIELD, SERVER_EVIDENCE, SERVER_PUBLIC_KEY, SHARED_MODULUS, SRP_CONFIDENTIALITY, SRP_DEFAULT_DIGEST_NAME, SRP_DIGEST_NAME, SRP_INTEGRITY_PROTECTION, SRP_MANDATORY, SRP_MD5_NAME, SRP_REPLAY_DETECTION, SRP_RIPEMD_128_NAME, SRP_RIPEMD_160_NAME, SRP_SHA_160_NAME, SRP_SHA_256_NAME, SRP_SHA_384_NAME, SRP_SHA_512_NAME, SRP_SHA_NAME, SRP_SHA1_NAME, USER_NAME, USER_ROLE, USER_SALT, USER_VERIFIER_FIELD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
passwordFile
private PasswordFile passwordFile
SRPAuthInfoProvider
public SRPAuthInfoProvider()
activate
public void activate(java.util.Map context)
throws cryptix.sasl.AuthException
- Description copied from interface:
cryptix.sasl.AuthInfoServices
- Activates (initialises) this provider instance. SHOULD be the first method
invoked on the provider.
- Specified by:
activate
in interface cryptix.sasl.AuthInfoServices
passivate
public void passivate()
throws cryptix.sasl.AuthException
- Description copied from interface:
cryptix.sasl.AuthInfoServices
- 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 cryptix.sasl.AuthInfoServices
contains
public boolean contains(java.lang.String userName)
throws cryptix.sasl.AuthException
- Description copied from interface:
cryptix.sasl.AuthInfoServices
- Checks if a user with a designated name is known to this provider.
- Specified by:
contains
in interface cryptix.sasl.AuthInfoServices
lookup
public java.util.Map lookup(java.util.Map userID)
throws cryptix.sasl.AuthException
- Description copied from interface:
cryptix.sasl.AuthInfoServices
- 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 cryptix.sasl.AuthInfoServices
update
public void update(java.util.Map userCredentials)
throws cryptix.sasl.AuthException
- Description copied from interface:
cryptix.sasl.AuthInfoServices
- Updates the credentials of a designated user.
- Specified by:
update
in interface cryptix.sasl.AuthInfoServices
getConfiguration
public java.util.Map getConfiguration(java.lang.String mode)
throws cryptix.sasl.AuthException
- Description copied from interface:
cryptix.sasl.AuthInfoServices
- 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 cryptix.sasl.AuthInfoServices