FileDocCategorySizeDatePackage
CustomPasswordDigest.javaAPI DocAndroid 1.5 API2050Wed May 06 22:42:46 BST 2009com.android.im.imps

CustomPasswordDigest

public class CustomPasswordDigest extends Object implements PasswordDigest

Fields Summary
private com.android.im.plugin.IPasswordDigest
mPasswordDigest
Constructors Summary
public CustomPasswordDigest(String pluginPath, String implClass)

        PathClassLoader classLoader = new PathClassLoader(pluginPath,
                getClass().getClassLoader());
        try {
            Class cls = classLoader.loadClass(implClass);
            mPasswordDigest = (IPasswordDigest)cls.newInstance();
        } catch (ClassNotFoundException e) {
            throw new ImException(e);
        } catch (IllegalAccessException e) {
            throw new ImException(e);
        } catch (InstantiationException e) {
            throw new ImException(e);
        }
    
Methods Summary
public java.lang.Stringdigest(java.lang.String schema, java.lang.String nonce, java.lang.String password)

        try {
            return mPasswordDigest.digest(schema, nonce, password);
        } catch (RemoteException e) {
            throw new ImException(e);
        }
    
public java.lang.String[]getSupportedDigestSchema()

        try {
            return mPasswordDigest.getSupportedDigestSchema();
        } catch (RemoteException e) {
            return new String[0];
        }