Home
last modified time | relevance | path

Searched refs:TrustAnchor (Results 1 – 25 of 27) sorted by relevance

12

/libcore/luni/src/test/java/tests/security/cert/
DTrustAnchorTest.java41 import java.security.cert.TrustAnchor;
75 new TrustAnchor(validCaNameRfc2253, pk, getFullEncoding()); in testTrustAnchorStringPublicKeybyteArray01()
77 new TrustAnchor(validCaNameRfc2253, pk, getEncodingPSOnly()); in testTrustAnchorStringPublicKeybyteArray01()
79 new TrustAnchor(validCaNameRfc2253, pk, getEncodingESOnly()); in testTrustAnchorStringPublicKeybyteArray01()
81 new TrustAnchor(validCaNameRfc2253, pk, getEncodingNoMinMax()); in testTrustAnchorStringPublicKeybyteArray01()
96 new TrustAnchor(validCaNameRfc2253, pk, null); in testTrustAnchorStringPublicKeybyteArray02()
114 TrustAnchor ta = new TrustAnchor(validCaNameRfc2253, pk, ncCopy); in testTrustAnchorStringPublicKeybyteArray03()
136 new TrustAnchor((String)null, pk, getEncodingPSOnly()); in testTrustAnchorStringPublicKeybyteArray04()
143 new TrustAnchor(validCaNameRfc2253, null, getEncodingPSOnly()); in testTrustAnchorStringPublicKeybyteArray04()
150 new TrustAnchor((String)null, null, getEncodingPSOnly()); in testTrustAnchorStringPublicKeybyteArray04()
[all …]
DPKIXCertPathValidatorResultTest.java31 import java.security.cert.TrustAnchor;
73 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathValidatorResult01()
108 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathValidatorResult03()
129 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathValidatorResult04()
147 TrustAnchor ta = TestUtils.getTrustAnchor(); in testGetTrustAnchor()
170 TrustAnchor ta = TestUtils.getTrustAnchor(); in testGetPublicKey()
196 TrustAnchor ta = TestUtils.getTrustAnchor(); in testGetPolicyTree01()
223 TrustAnchor ta = TestUtils.getTrustAnchor(); in testGetPolicyTree02()
247 TrustAnchor ta = TestUtils.getTrustAnchor(); in testClone()
283 public MyPKIXCertPathBuilderResult(TrustAnchor trustAnchor, in MyPKIXCertPathBuilderResult()
[all …]
DPKIXCertPathBuilderResultTest.java35 import java.security.cert.TrustAnchor;
82 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult01()
105 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult02()
125 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult03()
168 TrustAnchor ta = TestUtils.getTrustAnchor(); in testPKIXCertPathBuilderResult05()
187 TrustAnchor ta = TestUtils.getTrustAnchor(); in test_clone()
211 TrustAnchor ta = TestUtils.getTrustAnchor(); in testGetCertPath()
238 TrustAnchor ta = TestUtils.getTrustAnchor(); in testToString()
DPKIXBuilderParametersTest.java35 import java.security.cert.TrustAnchor;
88 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testPKIXBuilderParametersSetCertSelector01()
107 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testPKIXBuilderParametersSetCertSelector02()
127 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testPKIXBuilderParametersSetCertSelector03()
131 HashSet<TrustAnchor> originalSet = (HashSet<TrustAnchor>) taSet; in testPKIXBuilderParametersSetCertSelector03()
132 HashSet<TrustAnchor> originalSetCopy = (HashSet<TrustAnchor>) originalSet in testPKIXBuilderParametersSetCertSelector03()
154 new PKIXBuilderParameters((Set<TrustAnchor>) null, null); in testPKIXBuilderParametersSetCertSelector04()
170 new PKIXBuilderParameters(new HashSet<TrustAnchor>(), null); in testPKIXBuilderParametersSetCertSelector05()
/libcore/luni/src/test/java/libcore/java/security/cert/
DOldPKIXParametersTest.java31 import java.security.cert.TrustAnchor;
45 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testClone()
102 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testIsPolicyMappingInhibited()
112 Set<TrustAnchor> taSet2 = Collections.singleton(new TrustAnchor( in testIsPolicyMappingInhibited()
130 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testIsRevocationEnabled()
141 Set<TrustAnchor> taSet2 = Collections.singleton(new TrustAnchor( in testIsRevocationEnabled()
154 Set<TrustAnchor> taSet = TestUtils.getTrustAnchorSet(); in testToString()
DCertPathValidatorTest.java28 import java.security.cert.TrustAnchor;
95 .singleton(new TrustAnchor((X509Certificate) rootCaEntry.getCertificate(), null))); in runOCSPStapledTest()
/libcore/ojluni/src/main/java/java/security/cert/
DPKIXParameters.java88 private Set<TrustAnchor> unmodTrustAnchors;
117 public PKIXParameters(Set<TrustAnchor> trustAnchors) in PKIXParameters()
147 Set<TrustAnchor> hashSet = new HashSet<TrustAnchor>(); in PKIXParameters()
154 hashSet.add(new TrustAnchor((X509Certificate)cert, null)); in PKIXParameters()
172 public Set<TrustAnchor> getTrustAnchors() { in getTrustAnchors()
192 public void setTrustAnchors(Set<TrustAnchor> trustAnchors) in setTrustAnchors()
203 for (Iterator<TrustAnchor> i = trustAnchors.iterator(); i.hasNext(); ) { in setTrustAnchors()
204 if (!(i.next() instanceof TrustAnchor)) { in setTrustAnchors()
210 (new HashSet<TrustAnchor>(trustAnchors)); in setTrustAnchors()
DPKIXCertPathValidatorResult.java60 private TrustAnchor trustAnchor;
76 public PKIXCertPathValidatorResult(TrustAnchor trustAnchor, in PKIXCertPathValidatorResult()
94 public TrustAnchor getTrustAnchor() { in getTrustAnchor()
DTrustAnchor.java63 public class TrustAnchor { class
123 public TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints) in TrustAnchor() method in TrustAnchor
162 public TrustAnchor(X500Principal caPrincipal, PublicKey pubKey, in TrustAnchor() method in TrustAnchor
205 public TrustAnchor(String caName, PublicKey pubKey, byte[] nameConstraints) in TrustAnchor() method in TrustAnchor
DPKIXCertPathBuilderResult.java79 TrustAnchor trustAnchor, PolicyNode policyTree, in PKIXCertPathBuilderResult()
DPKIXBuilderParameters.java101 public PKIXBuilderParameters(Set<TrustAnchor> trustAnchors, CertSelector in PKIXBuilderParameters()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DTestUtils.java47 import java.security.cert.TrustAnchor;
91 public static TrustAnchor getTrustAnchor() { in getTrustAnchor()
107 return new TrustAnchor(c1, null); in getTrustAnchor()
125 public static Set<TrustAnchor> getTrustAnchorSet() { in getTrustAnchorSet()
126 TrustAnchor ta = getTrustAnchor(); in getTrustAnchorSet()
130 HashSet<TrustAnchor> set = new HashSet<TrustAnchor>(); in getTrustAnchorSet()
828 Collections.singleton(new TrustAnchor(rootCertificateSS, null)),
/libcore/ojluni/src/test/java/security/cert/
DPKIXCertPathValidatorValidity.java118 Set<TrustAnchor> trustAnchors = new HashSet<>(); in runTest()
120 TrustAnchor ta = new TrustAnchor(generateCert(trustedCertStr, cf), in runTest()
DAKISerialNumberTest.java118 TrustAnchor anchor = new TrustAnchor(rootCert, null); in main()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DSunCertPathBuilderResult.java33 import java.security.cert.TrustAnchor;
68 TrustAnchor trustAnchor, PolicyNode policyTree, in SunCertPathBuilderResult()
DDistributionPointFetcher.java74 Set<TrustAnchor> trustAnchors, in getCRLs()
93 Set<TrustAnchor> trustAnchors, in getCRLs()
148 Set<TrustAnchor> trustAnchors, Date validity) in getCRLs()
319 Set<TrustAnchor> trustAnchors, List<CertStore> certStores, in verifyCRL()
628 Set<TrustAnchor> newTrustAnchors = new HashSet<>(trustAnchors); in verifyCRL()
636 TrustAnchor temporary; in verifyCRL()
638 temporary = new TrustAnchor(prevCert, null); in verifyCRL()
641 temporary = new TrustAnchor(principal, prevKey, null); in verifyCRL()
DRevocationChecker.java55 private TrustAnchor anchor;
92 RevocationChecker(TrustAnchor anchor, ValidatorParams params) in RevocationChecker()
99 void init(TrustAnchor anchor, ValidatorParams params) in init()
208 Set<TrustAnchor> anchors,
226 Set<TrustAnchor> anchors,
242 Set<TrustAnchor> anchors,
263 Set<TrustAnchor> anchors,
268 for (TrustAnchor anchor : anchors) {
473 Set<TrustAnchor> anchors)
805 Set<TrustAnchor> anchors)
[all …]
DForwardBuilder.java39 import java.security.cert.TrustAnchor;
68 private final Set<TrustAnchor> trustAnchors;
72 TrustAnchor trustAnchor;
87 for (TrustAnchor anchor : trustAnchors) { in ForwardBuilder()
838 List<TrustAnchor> otherAnchors = new ArrayList<>(); in isPathCompleted()
840 for (TrustAnchor anchor : trustAnchors) { in isPathCompleted()
864 for (TrustAnchor anchor : otherAnchors) { in isPathCompleted()
DAlgorithmChecker.java43 import java.security.cert.TrustAnchor;
109 public AlgorithmChecker(TrustAnchor anchor) { in AlgorithmChecker()
139 public AlgorithmChecker(TrustAnchor anchor, in AlgorithmChecker()
362 void trySetTrustAnchor(TrustAnchor anchor) { in trySetTrustAnchor()
DPKIX.java86 private Set<TrustAnchor> anchors;
106 for (TrustAnchor anchor : this.anchors) { in ValidatorParams()
169 Set<TrustAnchor> trustAnchors() { in trustAnchors()
DPKIXCertPathValidator.java114 for (TrustAnchor anchor : params.trustAnchors()) { in validate()
158 private static PKIXCertPathValidatorResult validate(TrustAnchor anchor, in validate()
DSunCertPathBuilder.java78 private TrustAnchor trustAnchor;
360 TrustAnchor anchor = new TrustAnchor in depthFirstSearchForward()
572 private static boolean anchorIsTarget(TrustAnchor anchor, in anchorIsTarget()
DBasicChecker.java44 import java.security.cert.TrustAnchor;
81 BasicChecker(TrustAnchor anchor, Date date, String sigProvider, in BasicChecker()
DOCSPResponse.java35 import java.security.cert.TrustAnchor;
517 new TrustAnchor(issuerCert, null)); in verify()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DTrustManagerFactory1Test.java32 import java.security.cert.TrustAnchor;
449 TrustAnchor ta = new TrustAnchor(validCaNameRfc2253, pk, getFullEncoding()); in test_initLjavax_net_ssl_ManagerFactoryParameters()
450 Set<TrustAnchor> trustAnchors = new HashSet<TrustAnchor>(); in test_initLjavax_net_ssl_ManagerFactoryParameters()

12