1 7 8 package java.security.cert; 9 10 import java.util.*; 11 12 import javax.security.auth.x500.X500Principal ; 13 14 import sun.security.provider.certpath.CertPathHelper; 15 16 import sun.security.x509.GeneralNameInterface; 17 18 25 class CertPathHelperImpl extends CertPathHelper { 26 27 private CertPathHelperImpl() { 28 } 30 31 37 synchronized static void initialize() { 38 if (CertPathHelper.instance == null) { 39 CertPathHelper.instance = new CertPathHelperImpl (); 40 } 41 } 42 43 protected void implSetSubject(X509CertSelector sel, X500Principal subject) { 44 sel.setSubject(subject); 45 } 46 47 protected X500Principal implGetSubject(X509CertSelector sel) { 48 return sel.getSubject(); 49 } 50 51 protected void implSetIssuer(X509CertSelector sel, X500Principal issuer) { 52 sel.setIssuer(issuer); 53 } 54 55 protected X500Principal implGetIssuer(X509CertSelector sel) { 56 return sel.getIssuer(); 57 } 58 59 protected X500Principal implGetCA(TrustAnchor anchor) { 60 return anchor.getCA(); 61 } 62 63 protected void implSetPathToNames(X509CertSelector sel, 64 Set<GeneralNameInterface> names) { 65 sel.setPathToNamesInternal(names); 66 } 67 68 protected void implAddIssuer(X509CRLSelector sel, X500Principal name) { 69 sel.addIssuer(name); 70 } 71 72 protected Collection<X500Principal > implGetIssuers(X509CRLSelector sel) { 73 return sel.getIssuers(); 74 } 75 76 } 77 78 | Popular Tags |