public class SubtleUtil extends Object
| Constructor and Description |
|---|
SubtleUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isAndroid()
Best-effort checks that this is Android.
|
static String |
toEcdsaAlgo(Enums.HashType hash)
Returns the Ecdsa algorithm name corresponding to a hash type.
|
static String |
toRsaSsaPkcs1Algo(Enums.HashType hash)
Returns the RSA SSA (Signature with Appendix) PKCS1 algorithm name corresponding to a hash
type.
|
public static String toEcdsaAlgo(Enums.HashType hash) throws GeneralSecurityException
hash - the hash typeGeneralSecurityExceptionpublic static String toRsaSsaPkcs1Algo(Enums.HashType hash) throws GeneralSecurityException
hash - the hash typeGeneralSecurityExceptionpublic static boolean isAndroid()