Home
last modified time | relevance | path

Searched refs:ext (Results 1 – 25 of 43) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/nio/fs/
DMimeTypesFileTypeDetector.java73 String ext = getExtension(fn.toString()); in implProbeContentType()
74 if (ext.isEmpty()) in implProbeContentType()
87 mimeType = MimeMap.getDefault().guessMimeTypeFromExtension(ext); in implProbeContentType()
90 ext = getExtension(ext); in implProbeContentType()
91 } while (mimeType == null && !ext.isEmpty()); in implProbeContentType()
98 String ext = ""; in getExtension() local
102 ext = name.substring(dot + 1); in getExtension()
105 return ext; in getExtension()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleExtensions.java86 for (Entry<CaseInsensitiveChar, String> ext : extensions.entrySet()) { in LocaleExtensions()
87 char key = LocaleUtils.toLower(ext.getKey().value()); in LocaleExtensions()
88 String value = ext.getValue(); in LocaleExtensions()
148 Extension ext = extensionMap.get(LocaleUtils.toLower(key)); in getExtensionValue() local
149 if (ext == null) { in getExtensionValue()
152 return ext.getValue(); in getExtensionValue()
156 Extension ext = extensionMap.get(UnicodeLocaleExtension.SINGLETON); in getUnicodeLocaleAttributes() local
157 if (ext == null) { in getUnicodeLocaleAttributes()
160 assert (ext instanceof UnicodeLocaleExtension); in getUnicodeLocaleAttributes()
161 return ((UnicodeLocaleExtension)ext).getUnicodeLocaleAttributes(); in getUnicodeLocaleAttributes()
[all …]
/libcore/ojluni/src/main/java/sun/security/x509/
DCertificateExtensions.java87 Extension ext = new Extension(exts[i]); in init() local
88 parseExtension(ext); in init()
95 private void parseExtension(Extension ext) throws IOException { in parseExtension() argument
97 Class<?> extClass = OIDMap.getClass(ext.getExtensionId()); in parseExtension()
99 if (ext.isCritical()) { in parseExtension()
102 if (map.put(ext.getExtensionId().toString(), ext) == null) { in parseExtension()
110 Object[] passed = new Object[] {Boolean.valueOf(ext.isCritical()), in parseExtension()
111 ext.getExtensionValue()}; in parseExtension()
119 if (ext.isCritical() == false) { in parseExtension()
124 unparseableExtensions.put(ext.getExtensionId().toString(), in parseExtension()
[all …]
DExtension.java120 public Extension(Extension ext) { in Extension() argument
121 this.extensionId = ext.extensionId; in Extension()
122 this.critical = ext.critical; in Extension()
123 this.extensionValue = ext.extensionValue; in Extension()
137 Extension ext = new Extension(); in newExtension() local
138 ext.extensionId = extensionId; in newExtension()
139 ext.critical = critical; in newExtension()
140 ext.extensionValue = rawExtensionValue; in newExtension()
141 return ext; in newExtension()
DX509CRLEntryImpl.java242 Extension ext = getExtension(PKIXExtensions.ReasonCode_Id); in getRevocationReason() local
243 if (ext == null) { in getRevocationReason()
246 CRLReasonCodeExtension rcExt = (CRLReasonCodeExtension) ext; in getRevocationReason()
256 byte[] ext = crlEntry.getExtensionValue("2.5.29.21"); in getRevocationReason()
257 if (ext == null) { in getRevocationReason()
260 DerValue val = new DerValue(ext); in getRevocationReason()
306 Extension ext = exts[i]; in toString() local
308 if (OIDMap.getClass(ext.getExtensionId()) == null) { in toString()
309 sb.append(ext.toString()); in toString()
310 byte[] extValue = ext.getExtensionValue(); in toString()
[all …]
DCRLExtensions.java101 Extension ext = new Extension(exts[i]); in init() local
102 parseExtension(ext); in init()
112 private void parseExtension(Extension ext) throws CRLException { in parseExtension() argument
114 Class<?> extClass = OIDMap.getClass(ext.getExtensionId()); in parseExtension()
116 if (ext.isCritical()) in parseExtension()
118 if (map.put(ext.getExtensionId().toString(), ext) != null) in parseExtension()
123 Object[] passed = new Object[] {Boolean.valueOf(ext.isCritical()), in parseExtension()
124 ext.getExtensionValue()}; in parseExtension()
DInvalidityDateExtension.java210 public static InvalidityDateExtension toImpl(java.security.cert.Extension ext) in toImpl() argument
212 if (ext instanceof InvalidityDateExtension) { in toImpl()
213 return (InvalidityDateExtension) ext; in toImpl()
216 (Boolean.valueOf(ext.isCritical()), ext.getValue()); in toImpl()
DX509CertInfo.java322 Extension ext = exts[i]; in toString() local
324 if (OIDMap.getClass(ext.getExtensionId()) == null) { in toString()
325 sb.append(ext.toString()); in toString()
326 byte[] extValue = ext.getExtensionValue(); in toString()
337 sb.append(ext.toString()); //sub-class exists in toString()
346 for (Extension ext : invalid.values()) { in toString()
348 sb.append(ext); in toString()
DX509CertImpl.java1491 ExtendedKeyUsageExtension ext = getExtendedKeyUsageExtension(); in getExtendedKeyUsage() local
1492 if (ext == null) { in getExtendedKeyUsage()
1496 Collections.unmodifiableList(ext.getExtendedKeyUsage()); in getExtendedKeyUsage()
1510 byte[] ext = cert.getExtensionValue(EXTENDED_KEY_USAGE_OID); in getExtendedKeyUsage()
1511 if (ext == null) in getExtendedKeyUsage()
1513 DerValue val = new DerValue(ext); in getExtendedKeyUsage()
1680 byte[] ext = cert.getExtensionValue(SUBJECT_ALT_NAME_OID); in getSubjectAlternativeNames()
1681 if (ext == null) { in getSubjectAlternativeNames()
1684 DerValue val = new DerValue(ext); in getSubjectAlternativeNames()
1743 byte[] ext = cert.getExtensionValue(ISSUER_ALT_NAME_OID); in getIssuerAlternativeNames()
[all …]
/libcore/ojluni/src/main/java/java/security/cert/
DCertificateRevokedException.java148 Extension ext = getExtensions().get("2.5.29.24"); in getInvalidityDate() local
149 if (ext == null) { in getInvalidityDate()
153 Date invalidity = InvalidityDateExtension.toImpl(ext).get("DATE"); in getInvalidityDate()
205 Extension ext = entry.getValue(); in writeObject() local
206 oos.writeObject(ext.getId()); in writeObject()
207 oos.writeBoolean(ext.isCritical()); in writeObject()
208 byte[] extVal = ext.getValue(); in writeObject()
242 Extension ext = sun.security.x509.Extension.newExtension in readObject() local
244 extensions.put(oid, ext); in readObject()
DX509CertSelector.java2172 PrivateKeyUsageExtension ext = null; in matchPrivateKeyValid() local
2174 ext = (PrivateKeyUsageExtension) in matchPrivateKeyValid()
2176 if (ext != null) { in matchPrivateKeyValid()
2177 ext.valid(privateKeyValid); in matchPrivateKeyValid()
2183 Date notAfter = ext.get(PrivateKeyUsageExtension.NOT_AFTER); in matchPrivateKeyValid()
2199 Date notBefore = ext.get(PrivateKeyUsageExtension.NOT_BEFORE); in matchPrivateKeyValid()
2285 ExtendedKeyUsageExtension ext = in matchExtendedKeyUsage() local
2288 if (ext != null) { in matchExtendedKeyUsage()
2290 ext.get(ExtendedKeyUsageExtension.USAGES); in matchExtendedKeyUsage()
2386 CertificatePoliciesExtension ext = (CertificatePoliciesExtension) in matchPolicy() local
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DOCSPRequest.java119 for (Extension ext : extensions) { in encodeBytes()
120 ext.encode(extOut); in encodeBytes()
121 if (ext.getId().equals(OCSP.NONCE_EXTENSION_OID.toString())) { in encodeBytes()
122 nonce = ext.getValue(); in encodeBytes()
DAdaptableX509CertSelector.java125 void setSkiAndSerialNumber(AuthorityKeyIdentifierExtension ext) in setSkiAndSerialNumber() argument
131 if (ext != null) { in setSkiAndSerialNumber()
132 ski = ext.getEncodedKeyIdentifier(); in setSkiAndSerialNumber()
133 SerialNumber asn = (SerialNumber)ext.get( in setSkiAndSerialNumber()
DOCSPResponse.java336 Extension ext = new Extension(responseExtDer[i]); in OCSPResponse() local
338 debug.println("OCSP extension: " + ext); in OCSPResponse()
341 if (ext.getExtensionId().equals((Object) in OCSPResponse()
344 nonce = ext.getExtensionValue(); in OCSPResponse()
345 } else if (ext.isCritical()) { in OCSPResponse()
348 ext.getExtensionId()); in OCSPResponse()
768 Extension ext = new Extension(singleExtDer[i]); in SingleResponse() local
770 debug.println("OCSP single extension: " + ext); in SingleResponse()
775 if (ext.isCritical()) { in SingleResponse()
778 ext.getExtensionId()); in SingleResponse()
[all …]
/libcore/luni/src/main/java/java/net/
DDefaultFileNameMap.java43 String ext = filename.substring(dotIndex + 1); in getContentTypeFor() local
44 String result = mimeMap.guessMimeTypeFromExtension(ext); in getContentTypeFor()
/libcore/luni/src/test/java/libcore/libcore/content/type/
DMimeMapTest.java434 String ext = entry.getKey(); in assertMap() local
436 assertEquals(ext + ": " + mimeMap, mime, mimeMap.guessMimeTypeFromExtension(ext)); in assertMap()
437 expectedBuilder.put("?" + mime, ext); in assertMap()
441 String ext = entry.getValue(); in assertMap() local
442 assertEquals(mime + ": " + mimeMap, ext, mimeMap.guessExtensionFromMimeType(mime)); in assertMap()
443 expectedBuilder.put(mime, "?" + ext); in assertMap()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ext/
DDefaultHandler2Test.java17 package org.apache.harmony.tests.org.xml.sax.ext;
22 import org.xml.sax.ext.DefaultHandler2;
DLocator2ImplTest.java17 package org.apache.harmony.tests.org.xml.sax.ext;
22 import org.xml.sax.ext.Locator2Impl;
/libcore/luni/src/main/java/org/xml/sax/ext/
DLocator2.java6 package org.xml.sax.ext;
DTEST_MAPPING7 "include-filter": "org.apache.harmony.tests.org.xml.sax.ext"
DAttributes2.java6 package org.xml.sax.ext;
DLexicalHandler.java6 package org.xml.sax.ext;
DDeclHandler.java6 package org.xml.sax.ext;
DEntityResolver2.java6 package org.xml.sax.ext;
/libcore/luni/src/main/java/javax/xml/transform/sax/
DTransformerHandler.java26 import org.xml.sax.ext.LexicalHandler;

12