Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 25 of 318) sorted by relevance

12345678910>>...13

/libcore/ojluni/annotations/hiddenapi/sun/security/provider/certpath/
DX509CertificatePair.java37 java.security.cert.X509Certificate forward, java.security.cert.X509Certificate reverse) in X509CertificatePair()
38 throws java.security.cert.CertificateException { in X509CertificatePair()
42 private X509CertificatePair(byte[] encoded) throws java.security.cert.CertificateException { in X509CertificatePair()
52 generateCertificatePair(byte[] encoded) throws java.security.cert.CertificateException { in generateCertificatePair()
56 public void setForward(java.security.cert.X509Certificate cert) in setForward() argument
57 throws java.security.cert.CertificateException { in setForward()
61 public void setReverse(java.security.cert.X509Certificate cert) in setReverse() argument
62 throws java.security.cert.CertificateException { in setReverse()
66 public java.security.cert.X509Certificate getForward() { in getForward()
70 public java.security.cert.X509Certificate getReverse() { in getReverse()
[all …]
DX509CertPath.java29 public class X509CertPath extends java.security.cert.CertPath {
32 public X509CertPath(java.util.List<? extends java.security.cert.Certificate> certs) in X509CertPath()
33 throws java.security.cert.CertificateException { in X509CertPath()
39 public X509CertPath(java.io.InputStream is) throws java.security.cert.CertificateException { in X509CertPath()
46 throws java.security.cert.CertificateException { in X509CertPath()
51 private static java.util.List<java.security.cert.X509Certificate> parsePKIPATH( in parsePKIPATH()
52 java.io.InputStream is) throws java.security.cert.CertificateException { in parsePKIPATH()
56 private static java.util.List<java.security.cert.X509Certificate> parsePKCS7( in parsePKCS7()
57 java.io.InputStream is) throws java.security.cert.CertificateException { in parsePKCS7()
65 public byte[] getEncoded() throws java.security.cert.CertificateEncodingException { in getEncoded()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/
DX509CertificateTest.java23 package org.apache.harmony.tests.javax.security.cert;
29 import tests.targets.security.cert.CertificateFactoryTestX509;
45 import java.security.cert.CertificateFactory;
53 import javax.security.cert.Certificate;
54 import javax.security.cert.CertificateEncodingException;
55 import javax.security.cert.CertificateException;
56 import javax.security.cert.CertificateExpiredException;
57 import javax.security.cert.CertificateNotYetValidException;
58 import javax.security.cert.X509Certificate;
63 import tests.targets.security.cert.CertificateFactoryTestX509;
[all …]
/libcore/luni/src/test/java/tests/security/cert/
DPKIXBuilderParametersTest.java23 package tests.security.cert;
32 import java.security.cert.CertificateFactory;
33 import java.security.cert.PKIXBuilderParameters;
34 import java.security.cert.PKIXParameters;
35 import java.security.cert.TrustAnchor;
36 import java.security.cert.X509CertSelector;
37 import java.security.cert.X509Certificate;
41 import org.apache.harmony.security.tests.support.cert.TestUtils;
245 X509Certificate cert[] = new X509Certificate[2]; in testPKIXBuilderParametersKeyStoreCertSelector04() local
246 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in testPKIXBuilderParametersKeyStoreCertSelector04()
[all …]
DCertificateTest.java23 package tests.security.cert;
37 import java.security.cert.Certificate;
38 import java.security.cert.CertificateEncodingException;
39 import java.security.cert.CertificateException;
40 import java.security.cert.CertificateFactory;
43 import org.apache.harmony.security.tests.support.cert.MyCertificate;
44 import org.apache.harmony.security.tests.support.cert.MyFailingCertificate;
45 import org.apache.harmony.security.tests.support.cert.TestUtils;
83 assertFalse(c1.hashCode() == new MyCertificate("TEST_TYPE", cert in testHashCode()
85 assertFalse(c1.hashCode() == cert.hashCode()); in testHashCode()
[all …]
DCertStoreSpiTest.java23 package tests.security.cert;
31 import java.security.cert.CRL;
32 import java.security.cert.CRLSelector;
33 import java.security.cert.CertSelector;
34 import java.security.cert.CertStoreException;
35 import java.security.cert.CertStoreSpi;
36 import java.security.cert.Certificate;
38 import org.apache.harmony.security.tests.support.cert.MyCertStoreParameters;
39 import org.apache.harmony.security.tests.support.cert.MyCertStoreSpi;
DCertPathBuilderSpiTest.java23 package tests.security.cert;
25 import java.security.cert.CertPathChecker;
26 import java.security.cert.Certificate;
30 import java.security.cert.CertPathBuilderException;
31 import java.security.cert.CertPathBuilderResult;
32 import java.security.cert.CertPathBuilderSpi;
33 import java.security.cert.CertPathParameters;
35 import org.apache.harmony.security.tests.support.cert.MyCertPathBuilderSpi;
102 public void check(Certificate cert) { in check() argument
DX509Certificate2Test.java18 package tests.security.cert;
20 import org.apache.harmony.security.tests.support.cert.TestUtils;
26 import java.security.cert.CertificateException;
27 import java.security.cert.CertificateFactory;
28 import java.security.cert.CertificateParsingException;
29 import java.security.cert.X509Certificate;
30 import java.security.cert.X509Extension;
280 MyX509Certificate cert = new MyX509Certificate() { in testGetIssuerX500Principal() local
288 assertEquals(new X500Principal("CN=Z"), cert.getIssuerX500Principal()); in testGetIssuerX500Principal()
293 MyX509Certificate cert = new MyX509Certificate() { in testGetSubjectX500Principal() local
[all …]
DCertPathValidatorSpiTest.java17 package tests.security.cert;
22 import java.security.cert.CertPath;
23 import java.security.cert.CertPathChecker;
24 import java.security.cert.CertPathParameters;
25 import java.security.cert.CertPathValidatorResult;
26 import java.security.cert.CertPathValidatorSpi;
27 import java.security.cert.Certificate;
87 public void check(Certificate cert) { in check() argument
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DX509CertImpl.java29 public class X509CertImpl extends java.security.cert.X509Certificate
37 public X509CertImpl(byte[] certData) throws java.security.cert.CertificateException { in X509CertImpl()
48 throws java.security.cert.CertificateException { in X509CertImpl()
53 throws java.security.cert.CertificateException { in X509CertImpl()
58 throws java.security.cert.CertificateEncodingException { in encode()
66 public byte[] getEncoded() throws java.security.cert.CertificateEncodingException { in getEncoded()
71 public byte[] getEncodedInternal() throws java.security.cert.CertificateEncodingException { in getEncodedInternal()
76 throws java.security.cert.CertificateException, java.security.InvalidKeyException, in verify()
83 throws java.security.cert.CertificateException, java.security.InvalidKeyException, in verify()
90 throws java.security.cert.CertificateException, java.security.InvalidKeyException, in verify()
[all …]
DX509CRLImpl.java29 public class X509CRLImpl extends java.security.cert.X509CRL
37 public X509CRLImpl(byte[] crlData) throws java.security.cert.CRLException { in X509CRLImpl()
42 public X509CRLImpl(sun.security.util.DerValue val) throws java.security.cert.CRLException { in X509CRLImpl()
47 public X509CRLImpl(java.io.InputStream inStrm) throws java.security.cert.CRLException { in X509CRLImpl()
60 java.security.cert.X509CRLEntry[] badCerts) in X509CRLImpl()
61 throws java.security.cert.CRLException { in X509CRLImpl()
69 java.security.cert.X509CRLEntry[] badCerts, in X509CRLImpl()
71 throws java.security.cert.CRLException { in X509CRLImpl()
76 public byte[] getEncodedInternal() throws java.security.cert.CRLException { in getEncodedInternal()
80 public byte[] getEncoded() throws java.security.cert.CRLException { in getEncoded()
[all …]
DX509CertInfo.java37 public X509CertInfo(byte[] cert) throws java.security.cert.CertificateParsingException { in X509CertInfo() argument
42 throws java.security.cert.CertificateParsingException { in X509CertInfo()
47 throws java.security.cert.CertificateException, java.io.IOException { in encode()
59 public byte[] getEncodedInfo() throws java.security.cert.CertificateEncodingException { in getEncodedInfo()
81 throws java.security.cert.CertificateException, java.io.IOException { in set()
86 throws java.security.cert.CertificateException, java.io.IOException { in delete()
92 throws java.security.cert.CertificateException, java.io.IOException { in get()
102 throws java.security.cert.CertificateParsingException, java.io.IOException { in parse()
108 throws java.security.cert.CertificateParsingException, java.io.IOException { in verifyCert()
113 throws java.security.cert.CertificateException, java.io.IOException { in emit()
[all …]
DX509CRLEntryImpl.java29 public class X509CRLEntryImpl extends java.security.cert.X509CRLEntry
43 public X509CRLEntryImpl(byte[] revokedCert) throws java.security.cert.CRLException { in X509CRLEntryImpl()
48 throws java.security.cert.CRLException { in X509CRLEntryImpl()
57 throws java.security.cert.CRLException { in encode()
61 public byte[] getEncoded() throws java.security.cert.CRLException { in getEncoded()
65 private byte[] getEncoded0() throws java.security.cert.CRLException { in getEncoded0()
87 public java.security.cert.CRLReason getRevocationReason() { in getRevocationReason()
91 public static java.security.cert.CRLReason getRevocationReason( in getRevocationReason()
92 java.security.cert.X509CRLEntry crlEntry) { in getRevocationReason()
126 throws java.security.cert.CRLException, java.io.IOException { in parse()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKSTrustedCertificateEntryTest.java26 import java.security.cert.Certificate;
30 import org.apache.harmony.security.tests.support.cert.MyCertificate;
48 Certificate cert = null; in testTrustedCertificateEntry() local
50 new KeyStore.TrustedCertificateEntry(cert); in testTrustedCertificateEntry()
55 cert = new MyCertificate("TEST", new byte[10]); in testTrustedCertificateEntry()
57 KeyStore.TrustedCertificateEntry ksTCE = new KeyStore.TrustedCertificateEntry(cert); in testTrustedCertificateEntry()
71 Certificate cert = new MyCertificate("TEST", new byte[10]); in testSecretKeyEntry_nullAttributes() local
73 new KeyStore.TrustedCertificateEntry(cert, null /* attributes */); in testSecretKeyEntry_nullAttributes()
84 Certificate cert = new MyCertificate("TEST", new byte[10]); in testGetTrustedCertificate() local
86 new KeyStore.TrustedCertificateEntry(cert); in testGetTrustedCertificate()
[all …]
DKeyStore2Test.java40 import java.security.cert.Certificate;
41 import java.security.cert.CertificateEncodingException;
42 import java.security.cert.CertificateException;
43 import java.security.cert.CertificateFactory;
44 import java.security.cert.X509Certificate;
140 X509Certificate cert[] = new X509Certificate[2]; in creatCertificate() local
141 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in creatCertificate()
142 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in creatCertificate()
146 keyTest.setCertificateEntry("alias1", cert[0]); in creatCertificate()
149 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); in creatCertificate()
[all …]
DIdentity2Test.java30 import java.security.cert.CertificateFactory;
31 import java.security.cert.X509Certificate;
47 X509Certificate cert; field in Identity2Test.CertificateImpl
49 public CertificateImpl(X509Certificate cert) { in CertificateImpl() argument
50 this.cert = cert; in CertificateImpl()
54 return cert.getIssuerDN(); in getGuarantor()
72 return cert.getType(); in getFormat()
76 return cert.getSubjectDN(); in getPrincipal()
80 return cert.getPublicKey(); in getPublicKey()
248 X509Certificate cert[] = new X509Certificate[1]; in test_certificates() local
[all …]
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertPathValidatorTestPKIX.java16 package tests.targets.security.cert;
20 import java.security.cert.CertPath;
21 import java.security.cert.CertPathBuilder;
22 import java.security.cert.CertPathBuilderResult;
23 import java.security.cert.CertPathParameters;
24 import java.security.cert.CertPathValidatorResult;
25 import java.security.cert.CertStore;
26 import java.security.cert.CertStoreParameters;
27 import java.security.cert.Certificate;
28 import java.security.cert.CertificateFactory;
[all …]
DCertPathBuilderTestPKIX.java16 package tests.targets.security.cert;
20 import java.security.cert.CertPath;
21 import java.security.cert.CertPathParameters;
22 import java.security.cert.CertStore;
23 import java.security.cert.CertStoreParameters;
24 import java.security.cert.Certificate;
25 import java.security.cert.CollectionCertStoreParameters;
26 import java.security.cert.PKIXBuilderParameters;
27 import java.security.cert.X509CertSelector;
28 import java.security.cert.X509Certificate;
/libcore/ojluni/src/main/java/com/sun/security/cert/internal/x509/
DX509V1CertImpl.java26 package com.sun.security.cert.internal.x509;
37 import javax.security.cert.*;
52 private java.security.cert.X509Certificate wrappedCert;
54 synchronized private static java.security.cert.CertificateFactory
56 throws java.security.cert.CertificateException in getFactory()
58 return java.security.cert.CertificateFactory.getInstance("X.509"); in getFactory()
84 wrappedCert = (java.security.cert.X509Certificate) in X509V1CertImpl()
86 } catch (java.security.cert.CertificateException e) { in X509V1CertImpl()
100 wrappedCert = (java.security.cert.X509Certificate) in X509V1CertImpl()
102 } catch (java.security.cert.CertificateException e) { in X509V1CertImpl()
[all …]
/libcore/luni/src/test/java/libcore/java/security/cert/
DCertPathValidatorTest.java17 package libcore.java.security.cert;
21 import java.security.cert.CertPath;
22 import java.security.cert.CertPathValidator;
23 import java.security.cert.CertPathValidatorException;
24 import java.security.cert.CertificateFactory;
25 import java.security.cert.PKIXCertPathChecker;
26 import java.security.cert.PKIXParameters;
27 import java.security.cert.PKIXRevocationChecker;
28 import java.security.cert.TrustAnchor;
29 import java.security.cert.X509Certificate;
[all …]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DMyCertStoreSpi.java23 package org.apache.harmony.security.tests.support.cert;
26 import java.security.cert.CRL;
27 import java.security.cert.CRLSelector;
28 import java.security.cert.CertSelector;
29 import java.security.cert.CertStoreException;
30 import java.security.cert.CertStoreParameters;
31 import java.security.cert.CertStoreSpi;
32 import java.security.cert.Certificate;
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DBasicChecker.java36 import java.security.cert.Certificate;
37 import java.security.cert.CertificateExpiredException;
38 import java.security.cert.CertificateNotYetValidException;
39 import java.security.cert.CertPathValidatorException;
40 import java.security.cert.CertPathValidatorException.BasicReason;
41 import java.security.cert.X509Certificate;
42 import java.security.cert.PKIXCertPathChecker;
43 import java.security.cert.PKIXReason;
44 import java.security.cert.TrustAnchor;
138 public void check(Certificate cert, Collection<String> unresolvedCritExts) in check() argument
[all …]
DForwardState.java29 import java.security.cert.CertificateException;
30 import java.security.cert.CertPathValidatorException;
31 import java.security.cert.PKIXCertPathChecker;
32 import java.security.cert.X509Certificate;
62 X509CertImpl cert; field in ForwardState
162 public void updateState(X509Certificate cert) in updateState() argument
165 if (cert == null) in updateState()
168 X509CertImpl icert = X509CertImpl.toImpl(cert); in updateState()
176 this.cert = icert; in updateState()
179 issuerDN = cert.getIssuerX500Principal(); in updateState()
[all …]
DForwardBuilder.java32 import java.security.cert.CertificateException;
33 import java.security.cert.CertPathValidatorException;
34 import java.security.cert.PKIXReason;
35 import java.security.cert.CertStore;
36 import java.security.cert.CertStoreException;
37 import java.security.cert.PKIXBuilderParameters;
38 import java.security.cert.PKIXCertPathChecker;
39 import java.security.cert.TrustAnchor;
40 import java.security.cert.X509Certificate;
41 import java.security.cert.X509CertSelector;
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DX509KeyManagerTest.java9 import java.security.cert.CertificateFactory;
10 import java.security.cert.X509Certificate;
31 private X509Certificate[] cert; field in X509KeyManagerTest
635 cert = new X509Certificate[3]; in init()
636 cert[0] = (X509Certificate) cf.generateCertificate(certArray); in init()
637 cert[1] = (X509Certificate) cf.generateCertificate(certArray2); in init()
638 cert[2] = (X509Certificate) cf.generateCertificate(certArray3); in init()
639 … keyTest.setKeyEntry("clientKey_01", keys[0], PASSWORD, new X509Certificate[] {cert[0]}); in init()
640 … keyTest.setKeyEntry("clientKey_02", keys[1], PASSWORD, new X509Certificate[] {cert[0], cert[1]}); in init()
641 … keyTest.setKeyEntry("clientKey_03", keys[2], PASSWORD, new X509Certificate[] {cert[0], cert[2]}); in init()
[all …]

12345678910>>...13