Package org.robolectric.shadows
Class ShadowCryptoObject
java.lang.Object
org.robolectric.shadows.ShadowCryptoObject
@Implements(value=android.hardware.biometrics.CryptoObject.class,
isInAndroidSdk=false,
minSdk=28)
public class ShadowCryptoObject
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final long
getOpId()
The shadow method of CryptoObject#getOpId.
-
Constructor Details
-
ShadowCryptoObject
public ShadowCryptoObject()
-
-
Method Details
-
getOpId
The shadow method of CryptoObject#getOpId.The CryptoObject#getOpId implementation in AOSP calls javax.crypto.CipherSpi#getCurrentSpi to retrieve javax.crypto.Cipher, but this API is added by Android JDK implementation, and not supported by OpenJDK. To avoid this issue, we shadow CryptoObject#getOpId to intercept call-chain early. Related issue: java.lang.NoSuchMethodError: 'javax.crypto.CipherSpi javax.crypto.Cipher.getCurrentSpi().
- Returns:
- 0L as default value.
-