public class MicroEJSecurity extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COM_MICROEJ_SECURITY_DEBUG_ENABLED |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getInstance(String type,
Class<T> clazz,
String algorithm)
Get an instance of the requested SPI type & algorithm.
|
static String |
getProperty(String name) |
static String |
getProperty(String name,
String defaultValue) |
public static final String COM_MICROEJ_SECURITY_DEBUG_ENABLED
public static <T> T getInstance(String type, Class<T> clazz, String algorithm) throws NoSuchAlgorithmException
T - the Spi typetype - the type of engine (e.g. MessageDigest)clazz - the Spi class that the implementation must subclass (e.g. MessageDigestSpi.class) or null if no
superclass check is requiredalgorithm - the name of the algorithm (or alias), e.g. MD5NoSuchAlgorithmException