Searched refs:CertUtils (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/ |
D | CertUtilsTest.java | 79 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/ |
D | SigXml.java | 68 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 …]
|
D | CertXml.java | 97 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()
|
D | CertUtils.java | 66 public final class CertUtils { class 80 private CertUtils() {} in CertUtils() method in CertUtils
|
/frameworks/base/core/java/android/net/vcn/persistablebundleutils/ |
D | IkeSessionParamsUtils.java | 449 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()
|
D | CertUtils.java | 36 public class CertUtils { class
|
D | EapSessionConfigUtils.java | 263 CertUtils.certificateFromByteArray( in setBuilderByReadingPersistableBundle()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | TestData.java | 21 import com.android.server.locksettings.recoverablekeystore.certificate.CertUtils;
|
/frameworks/base/tests/vcn/java/android/net/vcn/persistablebundleutils/ |
D | IkeSessionParamsUtilsTest.java | 183 return (RSAPrivateKey) CertUtils.privateKeyFromByteArray(pemObject.getContent()); in createRsaPrivateKeyFromKeyFile()
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverableKeyStoreManager.java | 59 import com.android.server.locksettings.recoverablekeystore.certificate.CertUtils; 608 CertUtils.validateCertPath(mTestCertHelper.getRootCertificate(rootCertificateAlias), in startRecoverySessionWithCertPath()
|