/libcore/ojluni/annotations/hiddenapi/sun/security/provider/certpath/ |
D | X509CertificatePair.java | 37 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 …]
|
D | X509CertPath.java | 31 public class X509CertPath extends java.security.cert.CertPath { 34 public X509CertPath(java.util.List<? extends java.security.cert.Certificate> certs) in X509CertPath() 35 throws java.security.cert.CertificateException { in X509CertPath() 41 public X509CertPath(java.io.InputStream is) throws java.security.cert.CertificateException { in X509CertPath() 48 throws java.security.cert.CertificateException { in X509CertPath() 53 private static java.util.List<java.security.cert.X509Certificate> parsePKIPATH( in parsePKIPATH() 54 java.io.InputStream is) throws java.security.cert.CertificateException { in parsePKIPATH() 58 private static java.util.List<java.security.cert.X509Certificate> parsePKCS7( in parsePKCS7() 59 java.io.InputStream is) throws java.security.cert.CertificateException { in parsePKCS7() 67 public byte[] getEncoded() throws java.security.cert.CertificateEncodingException { in getEncoded() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/ |
D | X509CertificateTest.java | 23 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/ojluni/annotations/hiddenapi/sun/security/x509/ |
D | X509CertImpl.java | 29 import java.security.cert.*; 34 public class X509CertImpl extends java.security.cert.X509Certificate 42 public X509CertImpl(byte[] certData) throws java.security.cert.CertificateException { in X509CertImpl() 53 throws java.security.cert.CertificateException { in X509CertImpl() 58 throws java.security.cert.CertificateException { in X509CertImpl() 63 throws java.security.cert.CertificateEncodingException { in encode() 71 public byte[] getEncoded() throws java.security.cert.CertificateEncodingException { in getEncoded() 76 public byte[] getEncodedInternal() throws java.security.cert.CertificateEncodingException { in getEncodedInternal() 81 throws java.security.cert.CertificateException, java.security.InvalidKeyException, in verify() 88 throws java.security.cert.CertificateException, java.security.InvalidKeyException, in verify() [all …]
|
D | X509CRLImpl.java | 32 public class X509CRLImpl extends java.security.cert.X509CRL 40 public X509CRLImpl(byte[] crlData) throws java.security.cert.CRLException { in X509CRLImpl() 45 public X509CRLImpl(sun.security.util.DerValue val) throws java.security.cert.CRLException { in X509CRLImpl() 50 public X509CRLImpl(java.io.InputStream inStrm) throws java.security.cert.CRLException { in X509CRLImpl() 63 java.security.cert.X509CRLEntry[] badCerts) in X509CRLImpl() 64 throws java.security.cert.CRLException { in X509CRLImpl() 72 java.security.cert.X509CRLEntry[] badCerts, in X509CRLImpl() 74 throws java.security.cert.CRLException { in X509CRLImpl() 79 public byte[] getEncodedInternal() throws java.security.cert.CRLException { in getEncodedInternal() 83 public byte[] getEncoded() throws java.security.cert.CRLException { in getEncoded() [all …]
|
D | X509CertInfo.java | 28 import java.security.cert.*; 41 public X509CertInfo(byte[] cert) throws java.security.cert.CertificateParsingException { in X509CertInfo() argument 46 throws java.security.cert.CertificateParsingException { in X509CertInfo() 51 throws java.security.cert.CertificateException, java.io.IOException { in encode() 63 public byte[] getEncodedInfo() throws java.security.cert.CertificateEncodingException { in getEncodedInfo() 85 throws java.security.cert.CertificateException, java.io.IOException { in set() 90 throws java.security.cert.CertificateException, java.io.IOException { in delete() 96 throws java.security.cert.CertificateException, java.io.IOException { in get() 106 throws java.security.cert.CertificateParsingException, java.io.IOException { in parse() 112 throws java.security.cert.CertificateParsingException, java.io.IOException { in verifyCert() [all …]
|
D | X509CRLEntryImpl.java | 32 public class X509CRLEntryImpl extends java.security.cert.X509CRLEntry 46 public X509CRLEntryImpl(byte[] revokedCert) throws java.security.cert.CRLException { in X509CRLEntryImpl() 51 throws java.security.cert.CRLException { in X509CRLEntryImpl() 60 throws java.security.cert.CRLException { in encode() 64 public byte[] getEncoded() throws java.security.cert.CRLException { in getEncoded() 68 private byte[] getEncoded0() throws java.security.cert.CRLException { in getEncoded0() 90 public java.security.cert.CRLReason getRevocationReason() { in getRevocationReason() 94 public static java.security.cert.CRLReason getRevocationReason( in getRevocationReason() 95 java.security.cert.X509CRLEntry crlEntry) { in getRevocationReason() 129 throws java.security.cert.CRLException, java.io.IOException { in parse() [all …]
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | PKIXBuilderParametersTest.java | 23 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 …]
|
D | CertificateTest.java | 23 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 …]
|
D | CertStoreSpiTest.java | 23 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;
|
D | X509Certificate2Test.java | 18 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; 277 MyX509Certificate cert = new MyX509Certificate() { in testGetIssuerX500Principal() local 285 assertEquals(new X500Principal("CN=Z"), cert.getIssuerX500Principal()); in testGetIssuerX500Principal() 290 MyX509Certificate cert = new MyX509Certificate() { in testGetSubjectX500Principal() local [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KSTrustedCertificateEntryTest.java | 26 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 …]
|
D | Identity2Test.java | 30 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 …]
|
D | KeyStore2Test.java | 40 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 …]
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
D | CertPathValidatorTestPKIX.java | 16 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 …]
|
D | CertPathBuilderTestPKIX.java | 16 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/ |
D | X509V1CertImpl.java | 26 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/ |
D | CertPathValidatorTest.java | 17 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/ |
D | MyCertStoreSpi.java | 23 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;
|
D | MyCertPathValidatorSpi.java | 23 package org.apache.harmony.security.tests.support.cert; 26 import java.security.cert.CertPath; 27 import java.security.cert.CertPathParameters; 28 import java.security.cert.CertPathValidatorException; 29 import java.security.cert.CertPathValidatorResult; 30 import java.security.cert.CertPathValidatorSpi;
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | BasicChecker.java | 36 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 …]
|
D | ForwardState.java | 29 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 …]
|
D | ForwardBuilder.java | 32 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/ |
D | X509KeyManagerTest.java | 9 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 …]
|
/libcore/ojluni/annotations/hiddenapi/sun/security/pkcs/ |
D | PKCS7.java | 56 java.security.cert.X509Certificate[] certificates, in PKCS7() 57 java.security.cert.X509CRL[] crls, in PKCS7() 66 java.security.cert.X509Certificate[] certificates, in PKCS7() 143 public java.security.cert.X509Certificate[] getCertificates() { in getCertificates() 147 public java.security.cert.X509CRL[] getCRLs() { in getCRLs() 156 public java.security.cert.X509Certificate getCertificate( in getCertificate() 175 private java.security.cert.X509Certificate[] certificates; 181 private java.security.cert.X509CRL[] crls; 196 java.security.cert.X509Certificate wrapped, byte[] encodedVerbatim) { in VerbatimX509Certificate() 201 public byte[] getEncoded() throws java.security.cert.CertificateEncodingException { in getEncoded() [all …]
|