HomeSort by relevance Sort by last modified time
    Searched refs:certPath (Results 1 - 25 of 86) sorted by null

1 2 3 4

  /libcore/ojluni/src/main/java/java/security/cert/
PKIXCertPathBuilderResult.java 62 private CertPath certPath;
68 * @param certPath the validated {@code CertPath}
74 * @throws NullPointerException if the {@code certPath},
78 public PKIXCertPathBuilderResult(CertPath certPath,
83 if (certPath == null)
84 throw new NullPointerException("certPath must be non-null");
85 this.certPath = certPath
    [all...]
CertPathValidatorException.java 73 * @serial the {@code CertPath} that was being validated when
76 private CertPath certPath;
138 * @param certPath the certification path that was in the process of
142 * the list of certificates in a {@code CertPath} is zero based.
144 * {@code (index < -1 || (certPath != null && index >=
145 * certPath.getCertificates().size()) }
146 * @throws IllegalArgumentException if {@code certPath} is
150 CertPath certPath, int index)
    [all...]
CertPathValidatorSpi.java 67 * The {@code CertPath} specified must be of a type that is
71 * algorithm validates {@code CertPath} objects of type X.509.
73 * @param certPath the {@code CertPath} to be validated
76 * @exception CertPathValidatorException if the {@code CertPath}
79 * parameters or the type of the specified {@code CertPath} are
83 engineValidate(CertPath certPath, CertPathParameters params)
CertPathValidator.java 52 * validate} method and passing it the {@code CertPath} to be validated
106 * @see CertPath
282 * The {@code CertPath} specified must be of a type that is
286 * algorithm validates {@code CertPath} objects of type X.509.
288 * @param certPath the {@code CertPath} to be validated
291 * @exception CertPathValidatorException if the {@code CertPath}
294 * parameters or the type of the specified {@code CertPath} are
297 public final CertPathValidatorResult validate(CertPath certPath,
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
PKIXCertPathValidatorSpi.java 8 import java.security.cert.CertPath;
55 CertPath certPath,
101 List certs = certPath.getCertificates();
106 throw new CertPathValidatorException("Certification path is empty.", null, certPath, -1);
119 throw new CertPathValidatorException(e.getMessage(), e, certPath, 0);
146 throw new CertPathValidatorException(e.getMessage(), e, certPath, certs.size() - 1);
151 throw new CertPathValidatorException("Trust anchor for certification path not found.", null, certPath, -1);
256 throw new ExtCertPathValidatorException("Subject of trust anchor could not be (re)encoded.", ex, certPath,
268 "Algorithm identifier of public key of trust anchor could not be read.", e, certPath, -1)
    [all...]
RFC3280CertPathUtilities.java 7 import java.security.cert.CertPath;
541 throw new AnnotatedException("CertPath for CRL signer failed to validate.", e);
    [all...]
PKIXCertPathBuilderSpi.java 4 import java.security.cert.CertPath;
39 * Build and validate a CertPath using the given parameter.
42 * build the CertPath
195 CertPath certPath = null;
199 certPath = cFact.engineGenerateCertPath(tbvPath);
211 certPath, pkixParams);
219 return new PKIXCertPathBuilderResult(certPath, result
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/exception/
ExtCertPathValidatorException.java 3 import java.security.cert.CertPath;
20 CertPath certPath, int index)
22 super(msg, cause, certPath, index);
ExtCertPathBuilderException.java 3 import java.security.cert.CertPath;
19 CertPath certPath, int index)
  /libcore/ojluni/src/main/java/sun/security/provider/certpath/
SunCertPathBuilderResult.java 26 package sun.security.provider.certpath;
30 import java.security.cert.CertPath;
52 private static final Debug debug = Debug.getInstance("certpath");
59 * @param certPath the validated <code>CertPath</code>
67 SunCertPathBuilderResult(CertPath certPath,
71 super(certPath, trustAnchor, policyTree, subjectPublicKey);
PKIX.java 25 package sun.security.provider.certpath;
42 private static final Debug debug = Debug.getInstance("certpath");
51 static ValidatorParams checkParams(CertPath cp, CertPathParameters params)
78 private CertPath certPath;
89 ValidatorParams(CertPath cp, PKIXParameters params)
95 + "CertPath type specified, must be X.509 or X509");
97 this.certPath = cp;
115 CertPath certPath() {
    [all...]
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
MyCertPathValidatorSpi.java 26 import java.security.cert.CertPath;
40 public CertPathValidatorResult engineValidate(CertPath certPath,
44 if (certPath == null) {
46 throw new CertPathValidatorException("certPath null");
  /frameworks/base/core/java/android/security/keystore/recovery/
RecoveryCertPath.java 26 import java.security.cert.CertPath;
43 * Wraps a {@code CertPath} to create a {@code Parcelable} for Binder calls.
45 * @param certPath The certificate path to be wrapped.
48 public static @NonNull RecoveryCertPath createRecoveryCertPath(@NonNull CertPath certPath)
52 return new RecoveryCertPath(encodeCertPath(certPath));
54 throw new CertificateException("Failed to encode the given CertPath", e);
59 * Obtains the {@code CertPath} wrapped in the Parcelable.
64 public @NonNull CertPath getCertPath() throws CertificateException {
99 private static byte[] encodeCertPath(@NonNull CertPath certPath
    [all...]
KeyChainSnapshot.java 27 import java.security.cert.CertPath;
129 * CertPath containing the public key used to encrypt {@code encryptedRecoveryKeyBlob}.
131 public @NonNull CertPath getTrustedHardwareCertPath() {
238 * Sets CertPath used to validate the trusted hardware public key. The CertPath should
242 * @param certPath The certificate path
246 public Builder setTrustedHardwareCertPath(@NonNull CertPath certPath)
248 mInstance.mCertPath = RecoveryCertPath.createRecoveryCertPath(certPath);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
PKIXAttrCertChecker.java 3 import java.security.cert.CertPath;
37 * @param certPath The certificate path which belongs to the attribute
46 public abstract void check(X509AttributeCertificate attrCert, CertPath certPath,
47 CertPath holderCertPath, Collection unresolvedCritExts)
  /libcore/luni/src/test/java/tests/security/cert/
CertificateFactory3Test.java 34 import java.security.cert.CertPath;
53 public static String fileCertPathPki = "java/security/cert/CertPath.PkiPath";
120 * Assertion: returns CertPath with 1 Certificate
132 CertPath certPath = null;
133 certPath = certFs[i].generateCertPath(list);
134 assertEquals(cert.getType(), certPath.getType());
135 List<? extends Certificate> list1 = certPath.getCertificates();
138 assertEquals("Incorrect Certificate in CertPath", cert, it.next());
145 * method Assertion: returns CertPath with 1 Certificat
    [all...]
CertPathTest.java 26 import java.security.cert.CertPath;
36 * Tests for <code>CertPath</code> fields and methods
56 * Test for <code>CertPath(String type)</code> method<br>
61 CertPath cp1 = new MyCertPath(testEncoding);
69 CertPath cp1 = new MyCertPath(null);
80 CertPath cp1 = new MyCertPath(testEncoding);
81 CertPath cp2 = new MyCertPath(testEncoding);
82 CertPath cp3 = new MyCertPath(testEncoding1);
93 CertPath cp1 = new MyCertPath(testEncoding);
94 CertPath cp2 = new MyCertPath(testEncoding)
    [all...]
CertPathValidatorExceptionTest.java 30 import java.security.cert.CertPath;
195 * <code>CertPathValidatorException(String, Throwable, CertPath, int)</code>
198 * <code>certPath</code> is null <code>index</code> is -1
211 * <code>CertPathValidatorException(String, Throwable, CertPath, int)</code>
214 * <code>certPath</code> is null <code>index</code> not -1 throws:
226 + ", certPath is null and index is " + indx[j]);
235 * <code>CertPathValidatorException(String, Throwable, CertPath, int)</code>
238 * <code>certPath</code> is null <code>index</code> is -1
264 + ", certPath is null and index is -1");
271 * <code>CertPathValidatorException(String, Throwable, CertPath, int)</code
    [all...]
  /frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/
CertUtils.java 37 import java.security.cert.CertPath;
271 static CertPath validateCert(
279 CertPath certPath = buildCertPath(pkixParams);
289 certPathValidator.validate(certPath, pkixParams);
293 return certPath;
297 * Validates a given {@code CertPath} against the trusted root certificate.
300 * @param certPath the certificate path to be validated
304 public static void validateCertPath(X509Certificate trustedRoot, CertPath certPath)
    [all...]
  /system/extras/verity/
BootSignature.java 245 String certPath,
262 X509Certificate cert = Utils.loadPEMCertificate(certPath);
278 public static void verifySignature(String imagePath, String certPath) throws Exception {
289 if (!certPath.isEmpty()) {
290 System.err.println("NOTE: verifying using public key from " + certPath);
291 bootsig.setCertificate(Utils.loadPEMCertificate(certPath));
321 String certPath = "";
325 certPath = args[3];
329 verifySignature(args[1], certPath);
  /libcore/luni/src/test/java/tests/targets/security/cert/
CertPathValidatorTestPKIX.java 20 import java.security.cert.CertPath;
41 private CertPath certPath;
49 public CertPath getCertPath() {
50 return certPath;
86 certPath = builderResult.getCertPath();
  /frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
CertUtilsTest.java 32 import java.security.cert.CertPath;
247 CertPath certPath = CertUtils.buildCertPath(
251 assertThat(certPath.getCertificates()).containsExactly(
261 CertPath certPath =
266 assertThat(certPath.getCertificates())
280 CertPath certPath =
285 assertThat(certPath.getCertificates()
    [all...]
CertXmlTest.java 27 import java.security.cert.CertPath;
152 CertPath certPath =
157 assertThat(certPath.getCertificates())
  /frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
KeySyncTask.java 49 import java.security.cert.CertPath;
217 CertPath certPath = mRecoverableKeyStoreDb.getRecoveryServiceCertPath(mUserId,
219 if (certPath != null) {
220 Log.d(TAG, "Using the public key in stored CertPath for syncing");
221 publicKey = certPath.getCertificates().get(0).getPublicKey();
362 keyChainSnapshotBuilder.setTrustedHardwareCertPath(certPath);
365 Log.wtf(TAG, "Cannot serialize CertPath when calling setTrustedHardwareCertPath", e);
  /libcore/luni/src/test/java/libcore/java/security/cert/
CertPathValidatorTest.java 21 import java.security.cert.CertPath;
128 CertPath certPath = cf.generateCertPath(chain);
131 cpv.validate(certPath, params);

Completed in 673 milliseconds

1 2 3 4