Add @UnsupportedAppUsage annotations
For packages: android.security android-service.dreams android.service.euicc android.service.vr android.service.wallpaper This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I1c8ae08f8d3b4b2f5bf365468f22155f8def09fe
This commit is contained in:
@@ -20,6 +20,7 @@ import com.android.org.bouncycastle.util.io.pem.PemObject;
|
||||
import com.android.org.bouncycastle.util.io.pem.PemReader;
|
||||
import com.android.org.bouncycastle.util.io.pem.PemWriter;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
@@ -122,6 +123,7 @@ public class Credentials {
|
||||
* Convert objects to a PEM format which is used for
|
||||
* CA_CERTIFICATE and USER_CERTIFICATE entries.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public static byte[] convertToPem(Certificate... objects)
|
||||
throws IOException, CertificateEncodingException {
|
||||
ByteArrayOutputStream bao = new ByteArrayOutputStream();
|
||||
|
||||
@@ -27,6 +27,7 @@ import android.security.keystore.ParcelableKeyGenParameterSpec;
|
||||
*/
|
||||
interface IKeyChainService {
|
||||
// APIs used by KeyChain
|
||||
@UnsupportedAppUsage
|
||||
String requestPrivateKey(String alias);
|
||||
byte[] getCertificate(String alias);
|
||||
byte[] getCaCertificates(String alias);
|
||||
|
||||
Reference in New Issue
Block a user