Home
last modified time | relevance | path

Searched refs:CertUtils (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
DCertUtilsTest.java79 X509Certificate cert = CertUtils.decodeCert(f); in decodeCert_readPemFile_succeeds_singleBlock()
86 X509Certificate cert = CertUtils.decodeCert(in); in decodeCert_readPemFile_succeeds_multipleBlocks()
93 assertThrows(CertParsingException.class, () -> CertUtils.decodeCert(in)); in decodeCert_readPemFile_throwsIfNoBeginEndLines()
99 assertThrows(CertParsingException.class, () -> CertUtils.decodeCert(in)); in decodeCert_readPemFile_throwsIfEmptyBlock()
105 assertThrows(CertParsingException.class, () -> CertUtils.decodeCert(in)); in decodeCert_readPemFile_throwsIfInvalidCert()
110 X509Certificate cert = CertUtils.decodeCert(TestData.INTERMEDIATE_CA_2.getEncoded()); in decodeCert_readBytes_succeeds()
119 assertThrows(CertParsingException.class, () -> CertUtils.decodeCert(modifiedCertBytes)); in decodeCert_readBytes_throwsIfInvalidCert()
124 assertThat(CertUtils.decodeBase64("VEVTVA==")).isEqualTo("TEST".getBytes(UTF_8)); in decodeBase64_succeeds()
129 assertThat(CertUtils.decodeBase64("")).hasLength(0); in decodeBase64_succeedsIfEmptyInput()
134 assertThrows(CertParsingException.class, () -> CertUtils.decodeBase64("EVTVA==")); in decodeBase64_throwsIfInvalidInput()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/
DSigXml.java68 CertUtils.validateCert(validationDate, trustedRoot, intermediateCerts, signerCert); in verifyFileSignature()
69 CertUtils.verifyRsaSha256Signature(signerCert.getPublicKey(), signature, signedFileBytes); in verifyFileSignature()
81 Element rootNode = CertUtils.getXmlRootNode(bytes); in parse()
90 CertUtils.getXmlNodeContents( in parseIntermediateCerts()
91 CertUtils.MUST_EXIST_UNENFORCED, in parseIntermediateCerts()
97 res.add(CertUtils.decodeCert(CertUtils.decodeBase64(content))); in parseIntermediateCerts()
104 CertUtils.getXmlNodeContents( in parseSignerCert()
105 CertUtils.MUST_EXIST_EXACTLY_ONE, rootNode, SIGNER_CERT_NODE_TAG); in parseSignerCert()
106 return CertUtils.decodeCert(CertUtils.decodeBase64(contents.get(0))); in parseSignerCert()
111 CertUtils.getXmlNodeContents( in parseFileSignature()
[all …]
DCertXml.java97 return CertUtils.validateCert(validationDate, trustedRoot, intermediateCerts, chosenCert); in getEndpointCert()
109 Element rootNode = CertUtils.getXmlRootNode(bytes); in parse()
118 CertUtils.getXmlNodeContents( in parseSerial()
119 CertUtils.MUST_EXIST_EXACTLY_ONE, in parseSerial()
129 CertUtils.getXmlNodeContents( in parseIntermediateCerts()
130 CertUtils.MUST_EXIST_UNENFORCED, in parseIntermediateCerts()
136 res.add(CertUtils.decodeCert(CertUtils.decodeBase64(content))); in parseIntermediateCerts()
144 CertUtils.getXmlNodeContents( in parseEndpointCerts()
145 CertUtils.MUST_EXIST_AT_LEAST_ONE, in parseEndpointCerts()
151 res.add(CertUtils.decodeCert(CertUtils.decodeBase64(content))); in parseEndpointCerts()
DCertUtils.java66 public final class CertUtils { class
80 private CertUtils() {} in CertUtils() method in CertUtils
/frameworks/base/core/java/android/net/vcn/persistablebundleutils/
DIkeSessionParamsUtils.java449 final X509Certificate endCert = CertUtils.certificateFromByteArray(encodedCert); in setBuilderByReadingPersistableBundle()
458 certList.add(CertUtils.certificateFromByteArray(encoded)); in setBuilderByReadingPersistableBundle()
465 CertUtils.privateKeyFromByteArray( in setBuilderByReadingPersistableBundle()
475 caCert = CertUtils.certificateFromByteArray(encodedCaCert); in setBuilderByReadingPersistableBundle()
513 serverCaCert = CertUtils.certificateFromByteArray(encodedCaCert); in setBuilderByReadingPersistableBundle()
DCertUtils.java36 public class CertUtils { class
DEapSessionConfigUtils.java263 CertUtils.certificateFromByteArray( in setBuilderByReadingPersistableBundle()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DTestData.java21 import com.android.server.locksettings.recoverablekeystore.certificate.CertUtils;
/frameworks/base/tests/vcn/java/android/net/vcn/persistablebundleutils/
DIkeSessionParamsUtilsTest.java183 return (RSAPrivateKey) CertUtils.privateKeyFromByteArray(pemObject.getContent()); in createRsaPrivateKeyFromKeyFile()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManager.java59 import com.android.server.locksettings.recoverablekeystore.certificate.CertUtils;
608 CertUtils.validateCertPath(mTestCertHelper.getRootCertificate(rootCertificateAlias), in startRecoverySessionWithCertPath()