567 for (CodeSource source : sources) {
568 sourceList.add(source);
569 }
570 int j = sourceList.indexOf(cs);
571 if (j != -1) {
572 CodeSigner[] match;
573 match = ((VerifierCodeSource) sourceList.get(j)).getPrivateSigners();
574 if (match == null) {
575 match = emptySigner;
576 }
577 return match;
578 }
579 return null;
580 }
581
582 /*
583 * Instances of this class hold uncopied references to internal
584 * signing data that can be compared by object reference identity.
585 */
586 private static class VerifierCodeSource extends CodeSource {
587 private static final long serialVersionUID = -9047366145967768825L;
588
589 URL vlocation;
590 CodeSigner[] vsigners;
591 java.security.cert.Certificate[] vcerts;
592 Object csdomain;
593
594 VerifierCodeSource(Object csdomain, URL location, CodeSigner[] signers) {
595 super(location, signers);
596 this.csdomain = csdomain;
597 vlocation = location;
598 vsigners = signers; // from signerCache
599 }
600
601 VerifierCodeSource(Object csdomain, URL location, java.security.cert.Certificate[] certs) {
602 super(location, certs);
603 this.csdomain = csdomain;
604 vlocation = location;
605 vcerts = certs; // from signerCache
606 }
|
567 for (CodeSource source : sources) {
568 sourceList.add(source);
569 }
570 int j = sourceList.indexOf(cs);
571 if (j != -1) {
572 CodeSigner[] match;
573 match = ((VerifierCodeSource) sourceList.get(j)).getPrivateSigners();
574 if (match == null) {
575 match = emptySigner;
576 }
577 return match;
578 }
579 return null;
580 }
581
582 /*
583 * Instances of this class hold uncopied references to internal
584 * signing data that can be compared by object reference identity.
585 */
586 private static class VerifierCodeSource extends CodeSource {
587 @java.io.Serial
588 private static final long serialVersionUID = -9047366145967768825L;
589
590 URL vlocation;
591 CodeSigner[] vsigners;
592 java.security.cert.Certificate[] vcerts;
593 Object csdomain;
594
595 VerifierCodeSource(Object csdomain, URL location, CodeSigner[] signers) {
596 super(location, signers);
597 this.csdomain = csdomain;
598 vlocation = location;
599 vsigners = signers; // from signerCache
600 }
601
602 VerifierCodeSource(Object csdomain, URL location, java.security.cert.Certificate[] certs) {
603 super(location, certs);
604 this.csdomain = csdomain;
605 vlocation = location;
606 vcerts = certs; // from signerCache
607 }
|