
com.lambdaworks.jni.SysLibraryLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scrypt Show documentation
Show all versions of scrypt Show documentation
Java implementation of scrypt
The newest version!
// Copyright (C) 2011 - Will Glozer. All rights reserved.
package com.lambdaworks.jni;
/**
* A native library loader that simply invokes {@link System#loadLibrary}. The shared
* library path and filename are platform specific.
*
* @author Will Glozer
*/
public class SysLibraryLoader implements LibraryLoader {
/**
* Load a shared library.
*
* @param name Name of the library to load.
* @param verify Ignored, no verification is done.
*
* @return true if the library was successfully loaded.
*/
public boolean load(String name, boolean verify) {
boolean loaded;
try {
System.loadLibrary(name);
loaded = true;
} catch (Throwable e) {
loaded = false;
}
return loaded;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy