Lines Matching defs:certs

135     private transient java.security.cert.Certificate certs[];
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.clone();
178 if (this.certs == null) {
179 // Go through the list of certs and see if all the certs are
180 // signer certs.
183 while (i < certs.length) {
185 while (((i+1) < certs.length) &&
186 ((X509Certificate)certs[i]).getIssuerDN().equals(
187 ((X509Certificate)certs[i+1]).getSubjectDN())) {
192 if (count == certs.length) {
193 // All the certs are signer certs, so we store the entire
195 this.certs = certs.clone();
198 if (this.certs == null) {
199 // extract the signer certs
203 while (i < certs.length) {
204 signerCerts.add(certs[i]);
205 while (((i+1) < certs.length) &&
206 ((X509Certificate)certs[i]).getIssuerDN().equals(
207 ((X509Certificate)certs[i+1]).getSubjectDN())) {
212 this.certs =
214 signerCerts.toArray(this.certs);
229 Permission resolve(Permission p, java.security.cert.Certificate certs[]) {
230 if (this.certs != null) {
232 if (certs == null) {
236 // all certs in this.certs must be present in certs
238 for (int i = 0; i < this.certs.length; i++) {
240 for (int j = 0; j < certs.length; j++) {
241 if (this.certs[i].equals(certs[j])) {
362 // check certs
363 if ((this.certs == null && that.certs != null) ||
364 (this.certs != null && that.certs == null) ||
365 (this.certs != null && that.certs != null &&
366 this.certs.length != that.certs.length)) {
373 for (i = 0; this.certs != null && i < this.certs.length; i++) {
375 for (j = 0; j < that.certs.length; j++) {
376 if (this.certs[i].equals(that.certs[j])) {
384 for (i = 0; that.certs != null && i < that.certs.length; i++) {
386 for (j = 0; j < this.certs.length; j++) {
387 if (that.certs[i].equals(this.certs[j])) {
479 return (certs == null) ? null : certs.clone();
526 if (certs==null || certs.length==0) {
529 // write out the total number of certs
530 oos.writeInt(certs.length);
532 for (int i=0; i < certs.length; i++) {
533 java.security.cert.Certificate cert = certs[i];
560 // process any new-style certs in the stream (if present)
566 this.certs = new java.security.cert.Certificate[size];
597 this.certs[i] = cf.generateCertificate(bais);