Home
last modified time | relevance | path

Searched refs:keySpecClass (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreKeyFactorySpi.java44 protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpecClass) in engineGetKeySpec() argument
57 if (keySpecClass == null) { in engineGetKeySpec()
59 } else if (KeyInfo.class.equals(keySpecClass)) { in engineGetKeySpec()
77 } else if (X509EncodedKeySpec.class.equals(keySpecClass)) { in engineGetKeySpec()
87 } else if (PKCS8EncodedKeySpec.class.equals(keySpecClass)) { in engineGetKeySpec()
96 } else if (RSAPublicKeySpec.class.equals(keySpecClass)) { in engineGetKeySpec()
109 } else if (ECPublicKeySpec.class.equals(keySpecClass)) { in engineGetKeySpec()
122 throw new InvalidKeySpecException("Unsupported key spec: " + keySpecClass.getName()); in engineGetKeySpec()
DAndroidKeyStoreSecretKeyFactorySpi.java49 @SuppressWarnings("rawtypes") Class keySpecClass) throws InvalidKeySpecException { in engineGetKeySpec() argument
50 if (keySpecClass == null) { in engineGetKeySpec()
57 if (SecretKeySpec.class.isAssignableFrom(keySpecClass)) { in engineGetKeySpec()
61 if (!KeyInfo.class.equals(keySpecClass)) { in engineGetKeySpec()
62 throw new InvalidKeySpecException("Unsupported key spec: " + keySpecClass.getName()); in engineGetKeySpec()