/libcore/ojluni/src/main/java/sun/security/x509/ |
D | OIDName.java | 43 private ObjectIdentifier oid; field in OIDName 52 oid = derValue.getOID(); in OIDName() 60 public OIDName(ObjectIdentifier oid) { in OIDName() argument 61 this.oid = oid; in OIDName() 72 oid = new ObjectIdentifier(name); in OIDName() 92 out.putOID(oid); in encode() 99 return ("OIDName: " + oid.toString()); in toString() 106 return oid; in getOID() 123 return oid.equals((Object)other.oid); in equals() 132 return oid.hashCode(); in hashCode()
|
D | OtherName.java | 52 private ObjectIdentifier oid; field in OtherName 68 public OtherName(ObjectIdentifier oid, byte[] value) throws IOException { in OtherName() argument 69 if (oid == null || value == null) { in OtherName() 72 this.oid = oid; in OtherName() 74 gni = getGNI(oid, value); in OtherName() 78 name = "Unrecognized ObjectIdentifier: " + oid.toString(); in OtherName() 91 oid = in.getOID(); in OtherName() 94 gni = getGNI(oid, nameValue); in OtherName() 98 name = "Unrecognized ObjectIdentifier: " + oid.toString(); in OtherName() 107 return oid; in getOID() [all …]
|
D | AlgorithmId.java | 94 public AlgorithmId(ObjectIdentifier oid) { in AlgorithmId() argument 95 algid = oid; in AlgorithmId() 104 public AlgorithmId(ObjectIdentifier oid, AlgorithmParameters algparams) { in AlgorithmId() argument 105 algid = oid; in AlgorithmId() 110 private AlgorithmId(ObjectIdentifier oid, DerValue params) in AlgorithmId() argument 112 this.algid = oid; in AlgorithmId() 408 ObjectIdentifier oid; in get() local 410 oid = algOID(algname); in get() 416 if (oid == null) { in get() 420 return new AlgorithmId(oid); in get() [all …]
|
D | OIDMap.java | 176 private static void addInternal(String name, ObjectIdentifier oid, in addInternal() argument 178 OIDInfo info = new OIDInfo(name, oid, clazz); in addInternal() 179 oidMap.put(oid, info); in addInternal() 188 final ObjectIdentifier oid; field in OIDMap.OIDInfo 192 OIDInfo(String name, ObjectIdentifier oid, Class<?> clazz) { in OIDInfo() argument 194 this.oid = oid; in OIDInfo() 217 public static void addAttribute(String name, String oid, Class<?> clazz) in addAttribute() argument 221 objId = new ObjectIdentifier(oid); in addAttribute() 224 ("Invalid Object identifier: " + oid); in addAttribute() 229 ("Object identifier already exists: " + oid); in addAttribute() [all …]
|
D | AVA.java | 87 final ObjectIdentifier oid; field in AVA 121 oid = type; in AVA() 189 oid = AVAKeyword.getOID(temp.toString(), format, keywordMap); in AVA() 229 return oid; in getObjectIdentifier() 379 if (this.oid.equals((Object)PKCS9Attribute.EMAIL_ADDRESS_OID) || in parseQuotedString() 380 (this.oid.equals((Object)X500Name.DOMAIN_COMPONENT_OID) && in parseQuotedString() 520 if (this.oid.equals((Object)PKCS9Attribute.EMAIL_ADDRESS_OID) || in parseString() 521 (this.oid.equals((Object)X500Name.DOMAIN_COMPONENT_OID) && in parseString() 624 oid = X500Name.intern(derval.data.getOID()); in AVA() 678 tmp.putOID(oid); in derEncode() [all …]
|
D | ExtendedKeyUsageExtension.java | 207 for (ObjectIdentifier oid: keyUsages) { in toString() 212 String result = map.get(oid); in toString() 216 usage += oid.toString(); in toString() 307 for (ObjectIdentifier oid : keyUsages) { in getExtendedKeyUsage() 308 al.add(oid.toString()); in getExtendedKeyUsage()
|
D | X509CRLEntryImpl.java | 395 public byte[] getExtensionValue(String oid) { in getExtensionValue() argument 399 String extAlias = OIDMap.getName(new ObjectIdentifier(oid)); in getExtensionValue() 403 ObjectIdentifier findOID = new ObjectIdentifier(oid); in getExtensionValue() 437 public Extension getExtension(ObjectIdentifier oid) { in getExtension() argument 443 return extensions.get(OIDMap.getName(oid)); in getExtension()
|
D | X509CertImpl.java | 1053 ObjectIdentifier oid = algId.getOID(); in getSigAlgOID() 1054 return (oid.toString()); in getSigAlgOID() 1346 public Extension getExtension(ObjectIdentifier oid) { in getExtension() argument 1360 Extension ex = extensions.getExtension(oid.toString()); in getExtension() 1365 if (ex2.getExtensionId().equals((Object)oid)) { in getExtension() 1378 public Extension getUnparseableExtension(ObjectIdentifier oid) { in getUnparseableExtension() argument 1392 return extensions.getUnparseableExtensions().get(oid.toString()); in getUnparseableExtension() 1405 public byte[] getExtensionValue(String oid) { in getExtensionValue() argument 1407 ObjectIdentifier findOID = new ObjectIdentifier(oid); in getExtensionValue() 1435 certExt = exts.getUnparseableExtensions().get(oid); in getExtensionValue()
|
D | RDN.java | 325 DerValue findAttribute(ObjectIdentifier oid) { in findAttribute() argument 327 if (assertion[i].oid.equals((Object)oid)) { in findAttribute()
|
D | X509CRLImpl.java | 802 ObjectIdentifier oid = sigAlgId.getOID(); in getSigAlgOID() 803 return oid.toString(); in getSigAlgOID() 1009 public byte[] getExtensionValue(String oid) { in getExtensionValue() argument 1013 String extAlias = OIDMap.getName(new ObjectIdentifier(oid)); in getExtensionValue() 1017 ObjectIdentifier findOID = new ObjectIdentifier(oid); in getExtensionValue() 1051 public Object getExtension(ObjectIdentifier oid) { in getExtension() argument 1056 return extensions.get(OIDMap.getName(oid)); in getExtension()
|
D | CertificateExtensions.java | 242 public String getNameByOid(ObjectIdentifier oid) throws IOException { in getNameByOid() argument 244 if (map.get(name).getExtensionId().equals((Object)oid)) { in getNameByOid()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS9Attributes.java | 159 ObjectIdentifier oid; in PKCS9Attributes() local 161 oid = attribs[i].getOID(); in PKCS9Attributes() 162 if (attributes.containsKey(oid)) in PKCS9Attributes() 168 attributes.put(oid, attribs[i]); in PKCS9Attributes() 198 ObjectIdentifier oid; in decode() local 214 oid = attrib.getOID(); in decode() 216 if (attributes.get(oid) != null) in decode() 217 throw new IOException("Duplicate PKCS9 attribute: " + oid); in decode() 220 !permittedAttributes.containsKey(oid)) in decode() 221 throw new IOException("Attribute " + oid + in decode() [all …]
|
D | PKCS9Attribute.java | 395 private ObjectIdentifier oid; field in PKCS9Attribute 424 public PKCS9Attribute(ObjectIdentifier oid, Object value) in PKCS9Attribute() argument 426 init(oid, value); in PKCS9Attribute() 447 ObjectIdentifier oid = getOID(name); in PKCS9Attribute() local 449 if (oid == null) in PKCS9Attribute() 454 init(oid, value); in PKCS9Attribute() 457 private void init(ObjectIdentifier oid, Object value) in init() argument 460 this.oid = oid; in init() 461 index = indexOf(oid, PKCS9_OIDS, 1); in init() 466 " for attribute " + oid + in init() [all …]
|
D | PKCS7.java | 297 DerValue oid = digestAlgorithmIdVals[i]; in parseSignedData() local 298 digestAlgorithmIds[i] = AlgorithmId.parse(oid); in parseSignedData() 429 DerValue oid = digestAlgorithmIdVals[i]; in parseOldSignedData() local 430 digestAlgorithmIds[i] = AlgorithmId.parse(oid); in parseOldSignedData() 837 public byte[] getExtensionValue(String oid) { in getExtensionValue() argument 838 return wrapped.getExtensionValue(oid); in getExtensionValue()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | X509CRL2Test.java | 91 String oid = i.next(); in test_getExtensionValueLjava_lang_String() local 92 byte[] value = pemCert.getExtensionValue(oid); in test_getExtensionValueLjava_lang_String() 95 assertTrue("The extension value for the oid " + oid in test_getExtensionValueLjava_lang_String() 207 public byte[] getExtensionValue(String oid) { in getExtensionValue() argument
|
D | X509CRLEntryTest.java | 57 public byte[] getExtensionValue(String oid) { in getExtensionValue() argument
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CertificateRevokedException.java | 237 String oid = (String) ois.readObject(); in readObject() local 243 (new ObjectIdentifier(oid), critical, extVal); in readObject() 244 extensions.put(oid, ext); in readObject()
|
D | X509Extension.java | 185 public byte[] getExtensionValue(String oid); in getExtensionValue() argument
|
/libcore/luni/src/test/java/libcore/sun/security/x509/ |
D | AlgorithmIdTest.java | 82 private String getOidName(String oid) throws Exception { in getOidName() argument 83 return new AlgorithmId(new ObjectIdentifier(oid)).getName(); in getOidName()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | ObjectIdentifier.java | 142 public ObjectIdentifier (String oid) throws IOException in ObjectIdentifier() argument 149 byte[] tmp = new byte[oid.length()]; in ObjectIdentifier() 157 end = oid.indexOf(ch,start); in ObjectIdentifier() 159 comp = oid.substring(start); in ObjectIdentifier() 160 length = oid.length() - start; in ObjectIdentifier() 162 comp = oid.substring(start,end); in ObjectIdentifier() 202 this.stringForm = oid; in ObjectIdentifier()
|
D | DerOutputStream.java | 291 public void putOID(ObjectIdentifier oid) throws IOException { in putOID() argument 292 oid.encode(this); in putOID()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | PKIXMasterCertPathValidator.java | 106 for (String oid : unresCritExts) { in validate() 107 joiner.add(oid); in validate()
|
D | PolicyNodeImpl.java | 391 private static String policyToString(String oid) { in policyToString() argument 392 if (oid.equals(ANY_POLICY)) { in policyToString() 395 return oid; in policyToString()
|
/libcore/luni/src/test/java/libcore/java/security/spec/ |
D | AlgorithmParametersPSSTest.java | 218 private static void addDigestOid(String algorithm, String oid) { in addDigestOid() argument 219 DIGEST_OID_TO_NAME.put(oid, algorithm); in addDigestOid() 220 DIGEST_NAME_TO_OID.put(algorithm, oid); in addDigestOid()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | MyCertificate.java | 153 public byte[] getExtensionValue(String oid) { in getExtensionValue() argument
|