Methods Summary |
---|
protected void | finalize()
native_finalize();
|
private static final byte[] | getByteArrayFromUUID(java.util.UUID uuid)
long msb = uuid.getMostSignificantBits();
long lsb = uuid.getLeastSignificantBits();
byte[] uuidBytes = new byte[16];
for (int i = 0; i < 8; ++i) {
uuidBytes[i] = (byte)(msb >>> (8 * (7 - i)));
uuidBytes[8 + i] = (byte)(lsb >>> (8 * (7 - i)));
}
return uuidBytes;
|
public static final boolean | isCryptoSchemeSupported(java.util.UUID uuid)Query if the given scheme identified by its UUID is supported on
this device.
return isCryptoSchemeSupportedNative(getByteArrayFromUUID(uuid));
|
private static final native boolean | isCryptoSchemeSupportedNative(byte[] uuid)
|
private final native void | native_finalize()
|
private static final native void | native_init()
|
private final native void | native_setup(byte[] uuid, byte[] initData)
|
public final native void | release()
|
public final native boolean | requiresSecureDecoderComponent(java.lang.String mime)Query if the crypto scheme requires the use of a secure decoder
to decode data of the given mime type.
|