CustomPasswordDigestpublic 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.String | digest(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];
}
|
|