Merge "Avoid deprecated PrivateKeyInfo.getAlgorithmId()" am: a934366a8d
am: 8caeafdf92
Change-Id: I9dcfcf4414837d32a42abc152a49fb4544ddac80
This commit is contained in:
@@ -218,7 +218,7 @@ public final class CredentialStorage extends Activity {
|
|||||||
try {
|
try {
|
||||||
ASN1InputStream bIn = new ASN1InputStream(new ByteArrayInputStream(keyData));
|
ASN1InputStream bIn = new ASN1InputStream(new ByteArrayInputStream(keyData));
|
||||||
PrivateKeyInfo pki = PrivateKeyInfo.getInstance(bIn.readObject());
|
PrivateKeyInfo pki = PrivateKeyInfo.getInstance(bIn.readObject());
|
||||||
String algOid = pki.getAlgorithmId().getAlgorithm().getId();
|
String algOid = pki.getPrivateKeyAlgorithm().getAlgorithm().getId();
|
||||||
String algName = new AlgorithmId(new ObjectIdentifier(algOid)).getName();
|
String algName = new AlgorithmId(new ObjectIdentifier(algOid)).getName();
|
||||||
|
|
||||||
return KeyChain.isBoundKeyAlgorithm(algName);
|
return KeyChain.isBoundKeyAlgorithm(algName);
|
||||||
|
|||||||
Reference in New Issue
Block a user