Searched defs:certs (Results 1 - 25 of 26) sorted by relevance

12

/openjdk7/jdk/test/sun/security/pkcs11/ec/
H A DReadPKCS12.java115 Certificate[] certs = ks.getCertificateChain(alias);
116 PublicKey publicKey = certs[0].getPublicKey();
117 System.out.println("Certificates: " + certs.length);
121 ks2.setKeyEntry(alias, privateKey, "passphrase".toCharArray(), certs);
124 verifyCerts(certs);
154 private static void verifyCerts(Certificate[] certs) throws Exception { argument
155 int n = certs.length;
157 X509Certificate cert = (X509Certificate)certs[i];
158 X509Certificate issuer = (X509Certificate)certs[i + 1];
165 X509Certificate last = (X509Certificate)certs[
[all...]
H A DReadCertificates.java52 Collection<X509Certificate> certs = (Collection<X509Certificate>)factory.generateCertificates(in);
54 return certs;
77 Map<X500Principal,X509Certificate> certs = new LinkedHashMap<X500Principal,X509Certificate>();
79 File dir = new File(BASE, "certs");
80 File closedDir = new File(CLOSED_BASE, "certs");
89 X509Certificate old = certs.put(cert.getSubjectX500Principal(), cert);
98 System.out.println("OK: " + certs.size() + " certificates.");
100 for (X509Certificate cert : certs.values()) {
101 X509Certificate issuer = certs.get(cert.getIssuerX500Principal());
118 List<X509Certificate> certList = new ArrayList<X509Certificate>(certs
139 getRandomCert(List<X509Certificate> certs) argument
[all...]
/openjdk7/jdk/src/share/classes/javax/crypto/
H A DJarVerifier.java136 * Verify that the provided certs include the
139 * @param certs the list of certs to be checked.
140 * @throws Exception if the list of certs did not contain
143 static void verifyPolicySigned(java.security.cert.Certificate[] certs) argument
/openjdk7/jdk/test/java/security/cert/CertPathValidator/targetConstraints/
H A DValidateTargetConstraints.java68 String[] certs = { "sun.cer", "sun2labs1.cer" };
71 createPath(certs);
80 public static void createPath(String[] certs) throws Exception { argument
81 TrustAnchor anchor = new TrustAnchor(getCertFromFile(certs[0]), null);
83 for (int i = 1; i < certs.length; i++) {
84 list.add(0, getCertFromFile(certs[i]));
/openjdk7/jdk/src/share/classes/java/util/jar/
H A DJarEntry.java39 Certificate[] certs; field in class:JarEntry
74 this.certs = je.certs;
107 return certs == null ? null : certs.clone();
H A DJarVerifier.java230 je.certs = mapSignersToCertArray(je.signers);
590 VerifierCodeSource(Object csdomain, URL location, java.security.cert.Certificate[] certs) { argument
591 super(location, certs);
594 vcerts = certs; // from signerCache
/openjdk7/jdk/test/java/security/cert/CertPathValidator/trustAnchor/
H A DValidateNC.java73 String[] certs = { "sun2labs2.cer", "labs2isrg2.cer" };
75 createPath(certs);
97 public static void createPath(String[] certs) throws Exception { argument
99 X509Certificate anchorCert = getCertFromFile(certs[0]);
107 for (int i = 1; i < certs.length; i++) {
108 list.add(0, getCertFromFile(certs[i]));
/openjdk7/jdk/test/java/security/cert/pkix/nameConstraintsMinMax/
H A DVerifyNameConstraints.java57 String[] certs = { "sun.cer", "sun2labs2.cer", "labs2isrg2.cer" };
59 createPath(certs);
68 public static void createPath(String[] certs) throws Exception { argument
69 TrustAnchor anchor = new TrustAnchor(getCertFromFile(certs[0]), null);
71 for (int i = 1; i < certs.length; i++) {
72 list.add(0, getCertFromFile(certs[i]));
/openjdk7/jdk/src/share/classes/java/security/
H A DCodeSource.java67 private transient java.security.cert.Certificate certs[] = null; field in class:CodeSource
81 * @param certs the certificate(s). It may be null. The contents of the
84 public CodeSource(URL url, java.security.cert.Certificate certs[]) { argument
87 // Copy the supplied certs
88 if (certs != null) {
89 this.certs = certs.clone();
155 // certs must match
185 if (certs != null) {
186 return certs
594 convertCertArrayToSignerArray( java.security.cert.Certificate[] certs) argument
[all...]
H A DUnresolvedPermission.java135 private transient java.security.cert.Certificate certs[]; field in class:UnresolvedPermission
146 * @param certs the certificates the permission's class was signed with.
157 java.security.cert.Certificate certs[])
167 if (certs != null) {
168 // Extract the signer certs from the list of certificates.
169 for (int i=0; i<certs.length; i++) {
170 if (!(certs[i] instanceof X509Certificate)) {
171 // there is no concept of signer certs, so we store the
173 this.certs = certs
154 UnresolvedPermission(String type, String name, String actions, java.security.cert.Certificate certs[]) argument
229 resolve(Permission p, java.security.cert.Certificate certs[]) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/keys/storage/implementations/
H A DCertsInFilesystemDirectoryResolver.java170 * @param certs
172 public FilesystemIterator(List certs) { argument
173 this._certs = certs;
207 "data/ie/baltimore/merlin-examples/merlin-xmldsig-eighteen/certs");
/openjdk7/jdk/src/share/classes/com/sun/security/auth/
H A DSubjectCodeSource.java86 * @param certs the signers associated with this
91 URL url, Certificate[] certs) {
93 super(url, certs);
89 SubjectCodeSource(Subject subject, LinkedList<PolicyParser.PrincipalEntry> principals, URL url, Certificate[] certs) argument
/openjdk7/jdk/src/share/classes/sun/security/provider/certpath/
H A DX509CertPath.java72 private List<X509Certificate> certs; field in class:X509CertPath
100 * @param certs a <code>List</code> of <code>X509Certificate</code>s
101 * @exception CertificateException if <code>certs</code> contains an element
104 public X509CertPath(List<? extends Certificate> certs) throws CertificateException { argument
108 for (Object obj : (List<?>)certs) {
120 this.certs = Collections.unmodifiableList(
121 new ArrayList<X509Certificate>((List<X509Certificate>)certs));
151 certs = parsePKIPATH(is);
153 certs = parsePKCS7(is);
186 // append certs i
[all...]
H A DForwardBuilder.java117 * Retrieves all certs from the specified CertStores that satisfy the
136 * We store certs in a Set because we don't want duplicates.
140 Set<X509Certificate> certs = new TreeSet<X509Certificate>(comparator);
143 * Only look for EE certs if search has just started.
146 getMatchingEECerts(currState, certStores, certs);
148 getMatchingCACerts(currState, certStores, certs);
150 return certs;
166 * certs which don't satisfy constraints
187 * Require EE certs
192 /* Retrieve matching EE certs fro
365 getCerts(AuthorityInfoAccessExtension aiaExt, Collection<X509Certificate> certs) argument
[all...]
H A DOCSPChecker.java79 private X509Certificate[] certs; field in class:OCSPChecker
106 certs = tmp.toArray(new X509Certificate[tmp.size()]);
117 remainingCerts = certs.length + 1;
207 if (remainingCerts < certs.length) {
208 issuerCert = certs[remainingCerts];
222 // Check anchor certs for:
232 // Extract the anchor certs
H A DCrlRevocationChecker.java129 * @param certs a <code>Collection</code> of certificates
135 Collection<X509Certificate> certs) throws CertPathValidatorException
137 this(anchor, params, certs, false);
141 Collection<X509Certificate> certs, boolean onlyEECert)
147 if (certs != null) {
150 new CollectionCertStoreParameters(certs)));
618 // Now check revocation of all certs in path, assuming that
134 CrlRevocationChecker(TrustAnchor anchor, PKIXParameters params, Collection<X509Certificate> certs) argument
140 CrlRevocationChecker(TrustAnchor anchor, PKIXParameters params, Collection<X509Certificate> certs, boolean onlyEECert) argument
H A DSunCertPathBuilder.java374 * @param dN the distinguished name being currently searched for certs
397 + "certs.size=" + vertices.size());
611 * trusted certs, then add this cert (which is signed by
650 /* recursively search for matching certs at next dN */
662 * certs issued by the dN w/o finding any matching certs.
686 * @param dN the distinguished name being currently searched for certs
706 + "certs.size=" + vertices.size());
786 /* recursively search for matching certs at next dN */
798 * certs issue
818 addVertices(Collection<X509Certificate> certs, List<List<Vertex>> adjList) argument
[all...]
H A DURICertStore.java70 * a collection of Certificates encoded as a PKCS#7 "certs-only" CMS message.
106 private Collection<X509Certificate> certs = field in class:URICertStore
193 // if ldap URI, use an LDAPCertStore to fetch certs and CRLs
298 return getMatchingCerts(certs, selector);
315 return getMatchingCerts(certs, selector);
324 return getMatchingCerts(certs, selector);
331 certs = (Collection<X509Certificate>)
333 return getMatchingCerts(certs, selector);
355 certs = Collections.<X509Certificate>emptySet();
356 return certs;
364 getMatchingCerts(Collection<X509Certificate> certs, CertSelector selector) argument
[all...]
/openjdk7/jdk/test/sun/security/ssl/javax/net/ssl/NewAPIs/
H A DHttpsURLConnectionLocalCertificateChain.java34 * returning certs, not x509 certs
82 Certificate [] certs = session.getPeerCertificates();
84 for (int i = 0; i< certs.length; i++) {
85 if (certs[i] instanceof X509Certificate) {
87 // System.out.println(certs[i].toString());
113 * from cert.x509 to certs.
121 synchronized void dumpCerts(String where, Certificate [] certs) argument
127 if (certs == null) {
128 throw new Exception("certs
[all...]
/openjdk7/jdk/test/java/security/KeyStore/
H A DKeyStoreBuilder.java173 public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] certs) { argument
176 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] certs) { argument
/openjdk7/jdk/test/javax/xml/crypto/dsig/
H A DKeySelectors.java203 private Vector<X509Certificate> certs; field in class:KeySelectors.CollectionKeySelector
217 certs = new Vector<X509Certificate>();
218 File[] files = new File(certDir, "certs").listFiles();
221 certs.add((X509Certificate)cf.generateCertificate(fis));
291 File certFile = new File(new File(certDir, "certs"),
295 // i.e. the public key is in "certs/xxx.crt".
301 // collection of certs for match
303 match(MATCH_SUBJECT, name, certs);
337 // "certs" subdirectory and return those match.
341 result = match(MATCH_SUBJECT, obj, certs);
[all...]
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DServerHandshaker.java63 private X509Certificate[] certs; field in class:ServerHandshaker
688 if (certs == null) {
692 CertificateMsg m2 = new CertificateMsg(certs);
695 * Set local certs in the SSLSession, output
698 session.setLocalCertificates(certs);
710 if (certs != null) {
711 throw new RuntimeException("anonymous keyexchange with certs");
733 if (JsseJce.getRSAKeyLength(certs[0].getPublicKey()) > 512) {
803 // in use. For example, certs with fixed Diffie-Hellman keys
940 certs
[all...]
H A DHandshakeMessage.java433 CertificateMsg(X509Certificate[] certs) { argument
434 chain = certs;
/openjdk7/jdk/src/share/classes/sun/security/provider/
H A DPolicyFile.java770 Certificate[] certs = null;
772 certs = getCertificates(keyStore, ge.signedBy, newInfo);
773 if (certs == null) {
777 debug.println(" -- No certs for alias '" +
791 return (canonicalizeCodebase(new CodeSource(location, certs),false));
849 Certificate certs[];
851 certs = getCertificates(keyStore,
855 certs = null;
860 certs);
871 Certificate certs[];
2189 private Certificate certs[]; field in class:PolicyFile.SelfPermission
2204 SelfPermission(String type, String name, String actions, Certificate certs[]) argument
[all...]
/openjdk7/jdk/src/share/classes/java/lang/
H A DClassLoader.java242 // Hashtable that maps packages to certs
711 Certificate certs[] = pd.getCodeSource().getCertificates();
712 if (certs != null)
713 setSigners(c, certs);
927 Certificate[] certs = null;
929 certs = cs.getCertificates();
936 package2certs.put(pname, (certs == null? nocerts:certs));
941 putIfAbsent(pname, (certs == null? nocerts:certs));
953 compareCerts(Certificate[] pcerts, Certificate[] certs) argument
[all...]

Completed in 146 milliseconds

12