Home
last modified time | relevance | path

Searched refs:Extension (Results 1 – 25 of 59) sorted by relevance

123

/libcore/ojluni/src/main/java/sun/security/x509/
DCertificateExtensions.java47 public class CertificateExtensions implements CertAttrSet<Extension> {
60 private Map<String,Extension> map = Collections.synchronizedMap(
61 new TreeMap<String,Extension>());
64 private Map<String,Extension> unparseableExtensions;
87 Extension ext = new Extension(exts[i]); in init()
95 private void parseExtension(Extension ext) throws IOException { in parseExtension()
114 if (map.put(certExt.getName(), (Extension)certExt) != null) { in parseExtension()
122 unparseableExtensions = new TreeMap<String,Extension>(); in parseExtension()
170 Collection<Extension> allExts = map.values(); in encode()
176 else if (objs[i] instanceof Extension) in encode()
[all …]
DExtension.java61 public class Extension implements java.security.cert.Extension { class
70 public Extension() { } in Extension() method in Extension
75 public Extension(DerValue derVal) throws IOException { in Extension() method in Extension
104 public Extension(ObjectIdentifier extensionId, boolean critical, in Extension() method in Extension
120 public Extension(Extension ext) { in Extension() method in Extension
135 public static Extension newExtension(ObjectIdentifier extensionId, in newExtension()
137 Extension ext = new Extension(); in newExtension()
267 if (!(other instanceof Extension)) in equals()
269 Extension otherExt = (Extension) other; in equals()
DCRLExtensions.java66 private Map<String,Extension> map = Collections.synchronizedMap(
67 new TreeMap<String,Extension>());
101 Extension ext = new Extension(exts[i]); in init()
112 private void parseExtension(Extension ext) throws CRLException { in parseExtension()
126 if (map.put(crlExt.getName(), (Extension)crlExt) != null) { in parseExtension()
148 Collection<Extension> allExts = map.values(); in encode()
154 else if (objs[i] instanceof Extension) in encode()
155 ((Extension)objs[i]).encode(extOut); in encode()
183 public Extension get(String alias) { in get()
203 map.put(alias, (Extension)obj); in set()
[all …]
DX509CRLEntryImpl.java242 Extension ext = getExtension(PKIXExtensions.ReasonCode_Id); in getRevocationReason()
300 Collection<Extension> allEntryExts = extensions.getAllExtensions(); in toString()
301 Extension[] exts = allEntryExts.toArray(new Extension[0]); in toString()
306 Extension ext = exts[i]; in toString()
354 for (Extension ex : extensions.getAllExtensions()) { in getCriticalExtensionOIDs()
375 for (Extension ex : extensions.getAllExtensions()) { in getNonCriticalExtensionOIDs()
400 Extension crlExt = null; in getExtensionValue()
404 Extension ex = null; in getExtensionValue()
406 for (Enumeration<Extension> e = extensions.getElements(); in getExtensionValue()
437 public Extension getExtension(ObjectIdentifier oid) { in getExtension()
[all …]
DInvalidityDateExtension.java60 public class InvalidityDateExtension extends Extension
210 public static InvalidityDateExtension toImpl(java.security.cert.Extension ext) in toImpl()
DX509CRLImpl.java566 Collection<Extension> allExts = extensions.getAllExtensions(); in toString()
571 Extension ext = (Extension)objs[i]; in toString()
969 for (Extension ex : extensions.getAllExtensions()) { in getCriticalExtensionOIDs()
990 for (Extension ex : extensions.getAllExtensions()) { in getNonCriticalExtensionOIDs()
1014 Extension crlExt = null; in getExtensionValue()
1018 Extension ex = null; in getExtensionValue()
1020 for (Enumeration<Extension> e = extensions.getElements(); in getExtensionValue()
DX509CertInfo.java317 Collection<Extension> allExts = extensions.getAllExtensions(); in toString()
318 Extension[] exts = allExts.toArray(new Extension[0]); in toString()
322 Extension ext = exts[i]; in toString()
342 Map<String,Extension> invalid = extensions.getUnparseableExtensions(); in toString()
346 for (Extension ext : invalid.values()) { in toString()
DOCSPNoCheckExtension.java54 public class OCSPNoCheckExtension extends Extension
DX509CertImpl.java1297 for (Extension ex : exts.getAllExtensions()) { in getCriticalExtensionOIDs()
1327 for (Extension ex : exts.getAllExtensions()) { in getNonCriticalExtensionOIDs()
1346 public Extension getExtension(ObjectIdentifier oid) { in getExtension()
1360 Extension ex = extensions.getExtension(oid.toString()); in getExtension()
1364 for (Extension ex2: extensions.getAllExtensions()) { in getExtension()
1378 public Extension getUnparseableExtension(ObjectIdentifier oid) { in getUnparseableExtension()
1409 Extension certExt = null; in getExtensionValue()
1419 for (Extension ex : exts.getAllExtensions()) { in getExtensionValue()
1428 certExt = (Extension)this.get(extAlias); in getExtensionValue()
DCertificateIssuerExtension.java63 public class CertificateIssuerExtension extends Extension
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DExtension.java31 public class Extension implements java.security.cert.Extension { class
33 public Extension() { in Extension() method in Extension
37 public Extension(sun.security.util.DerValue derVal) throws java.io.IOException { in Extension() method in Extension
41 public Extension( in Extension() method in Extension
48 public Extension(sun.security.x509.Extension ext) { in Extension() method in Extension
52 public static sun.security.x509.Extension newExtension( in newExtension()
DCertificateExtensions.java33 implements sun.security.x509.CertAttrSet<sun.security.x509.Extension> {
49 private void parseExtension(sun.security.x509.Extension ext) throws java.io.IOException { in parseExtension()
70 public sun.security.x509.Extension get(java.lang.String name) throws java.io.IOException { in get()
74 sun.security.x509.Extension getExtension(java.lang.String name) { in getExtension()
87 public java.util.Enumeration<sun.security.x509.Extension> getElements() { in getElements()
91 public java.util.Collection<sun.security.x509.Extension> getAllExtensions() { in getAllExtensions()
95 public java.util.Map<java.lang.String, sun.security.x509.Extension> getUnparseableExtensions() { in getUnparseableExtensions()
131 private java.util.Map<java.lang.String, sun.security.x509.Extension> map;
133 private java.util.Map<java.lang.String, sun.security.x509.Extension> unparseableExtensions;
DX509CRLEntryImpl.java121 public sun.security.x509.Extension getExtension(sun.security.util.ObjectIdentifier oid) { in getExtension()
139 public java.util.Map<java.lang.String, java.security.cert.Extension> getExtensions() { in getExtensions()
DSubjectKeyIdentifierExtension.java29 public class SubjectKeyIdentifierExtension extends sun.security.x509.Extension
DSubjectAlternativeNameExtension.java31 public class SubjectAlternativeNameExtension extends sun.security.x509.Extension
/libcore/ojluni/src/main/java/java/security/cert/
DCertificateRevokedException.java68 private transient Map<String, Extension> extensions;
89 X500Principal authority, Map<String, Extension> extensions) { in CertificateRevokedException()
99 String.class, Extension.class); in CertificateRevokedException()
148 Extension ext = getExtensions().get("2.5.29.24"); in getInvalidityDate()
170 public Map<String, Extension> getExtensions() { in getExtensions()
204 for (Map.Entry<String, Extension> entry : extensions.entrySet()) { in writeObject()
205 Extension ext = entry.getValue(); in writeObject()
232 extensions = new HashMap<String, Extension>(size); in readObject()
242 Extension ext = sun.security.x509.Extension.newExtension in readObject()
DPKIXRevocationChecker.java101 private List<Extension> ocspExtensions = Collections.<Extension>emptyList();
168 public void setOcspExtensions(List<Extension> extensions) in setOcspExtensions()
171 ? Collections.<Extension>emptyList() in setOcspExtensions()
172 : new ArrayList<Extension>(extensions); in setOcspExtensions()
181 public List<Extension> getOcspExtensions() { in getOcspExtensions()
DExtension.java66 public interface Extension { interface
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleExtensions.java49 private final Map<Character, Extension> extensionMap;
62 private LocaleExtensions(String id, Character key, Extension value) { in LocaleExtensions()
84 SortedMap<Character, Extension> map = new TreeMap<>(); in LocaleExtensions()
98 map.put(key, new Extension(key, LocaleUtils.toLowerString(value))); in LocaleExtensions()
143 public Extension getExtension(Character key) { in getExtension()
148 Extension ext = extensionMap.get(LocaleUtils.toLower(key)); in getExtensionValue()
156 Extension ext = extensionMap.get(UnicodeLocaleExtension.SINGLETON); in getUnicodeLocaleAttributes()
165 Extension ext = extensionMap.get(UnicodeLocaleExtension.SINGLETON); in getUnicodeLocaleKeys()
174 Extension ext = extensionMap.get(UnicodeLocaleExtension.SINGLETON); in getUnicodeLocaleType()
194 private static String toID(SortedMap<Character, Extension> map) { in toID()
[all …]
DExtension.java35 class Extension { class
39 protected Extension(char key) { in Extension() method in Extension
43 Extension(char key, String value) { in Extension() method in Extension
/libcore/luni/src/test/java/tests/security/cert/
DCertificateRevocationExceptionTest.java26 import java.security.cert.Extension;
39 HashMap<String, Extension> extensions = new HashMap<String, Extension>(); in getTestException()
50 private Extension getReasonExtension() { in getReasonExtension()
51 return new Extension() { in getReasonExtension()
74 private Extension getInvalidityExtension() {
75 return new Extension() {
103 Map<String, Extension> extensions = original.getExtensions();
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DOCSPRequest.java29 import java.security.cert.Extension;
84 private final List<Extension> extensions;
97 this.extensions = Collections.<Extension>emptyList(); in OCSPRequest()
100 OCSPRequest(List<CertId> certIds, List<Extension> extensions) { in OCSPRequest()
119 for (Extension ext : extensions) { in encodeBytes()
DOCSP.java37 import java.security.cert.Extension;
133 Collections.<Extension>emptyList()); in check()
160 Collections.<Extension>emptyList()); in check()
168 Date date, List<Extension> extensions) in check()
202 List<Extension> extensions) in check()
362 Map<String, Extension> getSingleExtensions(); in getSingleExtensions()
DOCSPResponse.java336 Extension ext = new Extension(responseExtDer[i]); in OCSPResponse()
541 Extension noCheck = in verify()
689 private final Map<String, java.security.cert.Extension> singleExtensions;
765 new HashMap<String, java.security.cert.Extension> in SingleResponse()
768 Extension ext = new Extension(singleExtDer[i]); in SingleResponse()
810 public Map<String, java.security.cert.Extension> getSingleExtensions() { in getSingleExtensions()
/libcore/luni/src/test/java/libcore/java/security/cert/
DPKIXRevocationCheckerTest.java9 import java.security.cert.Extension;
95 checker.setOcspExtensions(Collections.singletonList(new Extension() { in test_getOcspExtensions()

123