Code examples for TrustAnchor

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
291:	TrustAnchor ta2 = new TrustAnchor(pemCert, getEncodingPSOnly()); 
292:	assertNull(ta2.getCA()); 
293:	assertNull(ta2.getCAName()); 
294:	assertNull(ta2.getCAPublicKey()); 
295:	assertTrue(Arrays.equals(getEncodingPSOnly(), ta2.getNameConstraints())); 
296:	assertEquals(pemCert, ta2.getTrustedCert()); 
Full Snippet Info
6
CodeRank
167:	trustanchors.add(new TrustAnchor((X509Certificate)cf.generateCertificate(new ByteArrayInputStream(rootCertBin)), null)); 
Full Snippet Info
6
CodeRank
229:	trust.add(new TrustAnchor(caCert, null)); 
Full Snippet Info
6
CodeRank
95:	trustanchors.add(trust); 
-
349:	return new TrustAnchor(principal, trustPubKey, null); 
Full Snippet Info
6
CodeRank
336:	trustanchors.add(ta); 
-
338:	X509Certificate rootCert = ta.getTrustedCert(); 
Full Snippet Info
5
CodeRank
69:	trustAnchors.add(new TrustAnchor(new X509CertificateObject( 
-
71:	(ASN1Sequence) new ASN1InputStream(trustedCert).readObject())), null)); 
Full Snippet Info
6
CodeRank
54:	TrustAnchor anchor = new TrustAnchor 
Full Snippet Info
5
CodeRank
108:	PKIXBuilderParameters buildParams = new PKIXBuilderParameters(Collections.singleton(new TrustAnchor(rootCert, null)), pathConstraints); 
Full Snippet Info
5
CodeRank
69:	trustAnchors.add(new TrustAnchor(trustedCert, null)); 
Full Snippet Info
5
CodeRank
167:	trustanchors.add(new TrustAnchor((X509Certificate)cf.generateCertificate(new ByteArrayInputStream(rootCertBin)), null)); 
Full Snippet Info
5
CodeRank
84:	return new TrustAnchor(certificate, null); 
Full Snippet Info
5
CodeRank
229:	trust.add(new TrustAnchor(caCert, null)); 
Full Snippet Info
5
CodeRank
334:	trustanchors.add(ta); 
-
336:	X509Certificate rootCert = ta.getTrustedCert(); 
-
424:	return new TrustAnchor(cert, null); 
Full Snippet Info
5
CodeRank
336:	trustanchors.add(ta); 
-
338:	X509Certificate rootCert = ta.getTrustedCert(); 
Full Snippet Info
5
CodeRank
60:	X509Certificate cert = anchor.getTrustedCert(); 
Full Snippet Info
5
CodeRank
328:	ta = new TrustAnchor(x500p, pk, null); 
329:	assertNull("null2", ta.getTrustedCert()); 
Full Snippet Info
5
CodeRank
95:	trustanchors.add(trust); 
-
349:	return new TrustAnchor(principal, trustPubKey, null); 
Full Snippet Info
5
CodeRank
93:	TrustAnchor anchor = new TrustAnchor(getCertFromFile("sun.cer"), null); 
Full Snippet Info
5
CodeRank
328:	ta = new TrustAnchor(x500p, pk, null); 
329:	assertNull("null2", ta.getTrustedCert()); 
Full Snippet Info
4
CodeRank
69:	trustAnchors.add(new TrustAnchor(trustedCert, null)); 
Full Snippet Info
4
CodeRank