/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/ |
D | ObjectIdentifier.java | 47 private final int[] oid; field in ObjectIdentifier 58 public ObjectIdentifier(int[] oid) { in ObjectIdentifier() argument 59 validate(oid); in ObjectIdentifier() 60 this.oid = oid; in ObjectIdentifier() 70 this.oid = toIntArray(strOid); in ObjectIdentifier() 80 return oid; in getOid() 96 return Arrays.equals(oid, ((ObjectIdentifier) o).oid); in equals() 104 soid = toString(oid); in toString() 115 for (int i = 0; i < oid.length && i < 4; i++) { in hashCode() 116 intHash += oid[i] << (8 * i); //TODO what about to find better one? in hashCode() [all …]
|
D | InformationObjectSet.java | 52 put(at.oid.getOid(), at); in put() 55 public void put(int[] oid, Object object) { in put() argument 57 int index = hashIntArray(oid) % capacity; in put() 64 if (Arrays.equals(oid, list[i].oid)) { in put() 73 list[i] = new Entry(oid, object); in put() 76 public Object get(int[] oid) { in get() argument 77 int index = hashIntArray(oid) % capacity; in get() 82 if (Arrays.equals(oid, list[i].oid)) { in get() 99 public int[] oid; field in InformationObjectSet.Entry 103 public Entry(int[] oid, Object object) { in Entry() argument [all …]
|
D | ASN1Oid.java | 87 int[] oid = new int[oidElement]; in getDecodedObject() local 88 for (int id = 1, i = 0; id < oid.length; id++, i++) { in getDecodedObject() 96 oid[id] = oidElement; in getDecodedObject() 99 if (oid[1] > 79) { in getDecodedObject() 100 oid[0] = 2; in getDecodedObject() 101 oid[1] = oid[1] - 80; in getDecodedObject() 103 oid[0] = oid[1] / 40; in getDecodedObject() 104 oid[1] = oid[1] % 40; in getDecodedObject() 106 return oid; in getDecodedObject() 120 int[] oid = (int[]) out.content; in setEncodingContent() local [all …]
|
D | ASN1OpenType.java | 50 int[] oid = (int[]) in.get(key); in decode() local 51 if (oid == null) { in decode() 55 AttributeType attr = (AttributeType) pool.get(oid); in decode() 71 Object oid = super.decode(in); in decode() local 73 if (oid == null) { in decode() 76 in.put(this, oid); in decode() 78 return oid; in decode()
|
D | BerOutputStream.java | 134 int[] oid = (int[]) content; in encodeOID() local 140 for (int i = oid.length - 1; i > 1; i--, oidLen--) { in encodeOID() 141 elem = oid[i]; in encodeOID() 156 elem = oid[0] * 40 + oid[1]; in encodeOID()
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/utils/ |
D | ObjectIdentifier.java | 45 private final int[] oid; field in ObjectIdentifier 70 public ObjectIdentifier(int[] oid) { in ObjectIdentifier() argument 72 validateOid(oid); in ObjectIdentifier() 74 this.oid = oid; in ObjectIdentifier() 87 public ObjectIdentifier(int[] oid, String name, Object oidGroup) { in ObjectIdentifier() argument 88 this(oid); in ObjectIdentifier() 105 return oid; in getOid() 139 return Arrays.equals(oid, ((ObjectIdentifier) o).oid); in equals() 161 StringBuffer sb = new StringBuffer(4 * oid.length); in toString() 163 for (int i = 0; i < oid.length - 1; ++i) { in toString() [all …]
|
D | AlgNameMapper.java | 156 public static String map2AlgName(String oid) { in map2AlgName() argument 158 String algUC = oid2AlgMap.get(oid); in map2AlgName() 232 public static String normalize(String oid) { in normalize() argument 233 return oid.startsWith("OID.") //$NON-NLS-1$ in normalize() 234 ? oid.substring(4) in normalize() 235 : oid; in normalize()
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/ |
D | OIDDatabase.java | 43 DBEntry oid; in OIDDatabase() local 53 oid = new DBEntry("1.2.840.113549.1.1.4"); in OIDDatabase() 55 wireTogether(oid, alg); in OIDDatabase() 58 oid = new DBEntry("1.2.840.113549.1.1.5"); in OIDDatabase() 60 wireTogether(oid, alg); in OIDDatabase() 63 oid = new DBEntry("1.2.840.10040.4.3"); in OIDDatabase() 65 wireTogether(oid, alg); in OIDDatabase() 70 oid = new DBEntry("1.3.14.3.2.26"); in OIDDatabase() 73 wireTogether(oid, alg); in OIDDatabase() 74 wireTogether(oid, alg2); in OIDDatabase() [all …]
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/ |
D | OIDTokenizer.java | 11 private String oid; field in OIDTokenizer 15 String oid) in OIDTokenizer() argument 17 this.oid = oid; in OIDTokenizer() 34 int end = oid.indexOf('.', index); in nextToken() 38 token = oid.substring(index); in nextToken() 43 token = oid.substring(index, end); in nextToken()
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/pkcs7/ |
D | ContentInfo.java | 55 private int[] oid; field in ContentInfo 59 public ContentInfo(int[] oid, Object content) { in ContentInfo() argument 60 this.oid = oid; in ContentInfo() 64 private ContentInfo(int[] oid, Object content, byte[] encoding) { in ContentInfo() argument 65 this.oid = oid; in ContentInfo() 71 if (Arrays.equals(oid, SIGNED_DATA)) { in getSignedData() 82 return oid; in getContentType() 99 for (int i = 0; i< oid.length; i++) { in toString() 100 res.append(oid[i]); in toString() 124 values[0] = ci.oid; [all …]
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x501/ |
D | AttributeType.java | 38 public final ObjectIdentifier oid; field in AttributeType 42 public AttributeType(ObjectIdentifier oid, ASN1Type type) { in AttributeType() argument 43 this.oid = oid; in AttributeType()
|
D | AttributeTypeAndValue.java | 245 private final ObjectIdentifier oid; field in AttributeTypeAndValue 251 private AttributeTypeAndValue(int[] oid, AttributeValue value) in AttributeTypeAndValue() argument 254 ObjectIdentifier thisOid = getOID(oid); in AttributeTypeAndValue() 256 thisOid = new ObjectIdentifier(oid); in AttributeTypeAndValue() 258 this.oid = thisOid; in AttributeTypeAndValue() 284 this.oid = thisOid; in AttributeTypeAndValue() 287 this.oid = (ObjectIdentifier) KNOWN_NAMES.get(sOid.toUpperCase()); in AttributeTypeAndValue() 288 if (this.oid == null) { in AttributeTypeAndValue() 305 if (RFC1779_NAMES == oid.getGroup()) { in appendName() 306 buf.append(oid.getName()); in appendName() [all …]
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/x509/ |
D | X509DefaultEntryConverter.java | 27 DERObjectIdentifier oid, in getConvertedValue() argument 38 throw new RuntimeException("can't recode value for oid " + oid.getId()); in getConvertedValue() 41 else if (oid.equals(X509Name.EmailAddress) || oid.equals(X509Name.DC)) in getConvertedValue() 45 else if (oid.equals(X509Name.DATE_OF_BIRTH)) in getConvertedValue()
|
D | X509NameTokenizer.java | 17 String oid) in X509NameTokenizer() argument 19 this(oid, ','); in X509NameTokenizer() 23 String oid, in X509NameTokenizer() argument 26 this.value = oid; in X509NameTokenizer()
|
D | X509Extensions.java | 261 DERObjectIdentifier oid = (DERObjectIdentifier)e.nextElement(); in X509Extensions() local 262 X509Extension ext = (X509Extension)extensions.get(oid); in X509Extensions() 263 table.add(oid, ext); in X509Extensions() 285 DERObjectIdentifier oid = (DERObjectIdentifier)e.nextElement(); in X509Extensions() local 288 table.add(oid, ext); in X509Extensions() 311 DERObjectIdentifier oid) in getExtension() argument 314 return (X509Extension)table.get(oid); in getExtension() 335 DERObjectIdentifier oid = table.getKey(i); in toASN1Object() local 339 v.add(oid); in toASN1Object()
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/ |
D | JCERSAPrivateKey.java | 104 DERObjectIdentifier oid, in setBagAttribute() argument 107 pkcs12Attributes.put(oid, attribute); in setBagAttribute() 108 pkcs12Ordering.addElement(oid); in setBagAttribute() 112 DERObjectIdentifier oid) in getBagAttribute() argument 114 return (DEREncodable)pkcs12Attributes.get(oid); in getBagAttribute() 142 DERObjectIdentifier oid; in readObject() local 144 while ((oid = (DERObjectIdentifier)aIn.readObject()) != null) in readObject() 146 this.setBagAttribute(oid, aIn.readObject()); in readObject() 173 DEREncodable oid = (DEREncodable)e.nextElement(); in writeObject() local 175 aOut.writeObject(oid); in writeObject() [all …]
|
D | X509CertificateObject.java | 418 DERObjectIdentifier oid = (DERObjectIdentifier)e.nextElement(); in getCriticalExtensionOIDs() local 419 X509Extension ext = extensions.getExtension(oid); in getCriticalExtensionOIDs() 423 set.add(oid.getId()); in getCriticalExtensionOIDs() 434 private byte[] getExtensionBytes(String oid) in getExtensionBytes() argument 440 X509Extension ext = exts.getExtension(new DERObjectIdentifier(oid)); in getExtensionBytes() 450 public byte[] getExtensionValue(String oid) in getExtensionValue() argument 456 X509Extension ext = exts.getExtension(new DERObjectIdentifier(oid)); in getExtensionValue() 492 DERObjectIdentifier oid = (DERObjectIdentifier)e.nextElement(); in getNonCriticalExtensionOIDs() local 493 X509Extension ext = extensions.getExtension(oid); in getNonCriticalExtensionOIDs() 497 set.add(oid.getId()); in getNonCriticalExtensionOIDs() [all …]
|
D | JCEPBEKey.java | 16 DERObjectIdentifier oid; field in JCEPBEKey 30 DERObjectIdentifier oid, in JCEPBEKey() argument 39 this.oid = oid; in JCEPBEKey() 139 return oid; in getOID()
|
D | X509CRLEntryObject.java | 131 DERObjectIdentifier oid = (DERObjectIdentifier) e.nextElement(); in getExtensionOIDs() local 132 X509Extension ext = extensions.getExtension(oid); in getExtensionOIDs() 136 set.add(oid.getId()); in getExtensionOIDs() 156 public byte[] getExtensionValue(String oid) in getExtensionValue() argument 162 X509Extension ext = exts.getExtension(new DERObjectIdentifier(oid)); in getExtensionValue() 232 DERObjectIdentifier oid = (DERObjectIdentifier)e.nextElement(); in toString() local 233 X509Extension ext = extensions.getExtension(oid); in toString()
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/x509/ |
D | X509V3CertificateGenerator.java | 186 String oid, in addExtension() argument 190 this.addExtension(new DERObjectIdentifier(oid), critical, value); in addExtension() 197 DERObjectIdentifier oid, in addExtension() argument 219 this.addExtension(oid, critical, bOut.toByteArray()); in addExtension() 228 String oid, in addExtension() argument 232 this.addExtension(new DERObjectIdentifier(oid), critical, value); in addExtension() 239 DERObjectIdentifier oid, in addExtension() argument 249 extensions.put(oid, new X509Extension(critical, new DEROctetString(value))); in addExtension() 250 extOrdering.addElement(oid); in addExtension() 259 String oid, in copyAndAddExtension() argument [all …]
|
D | X509Attribute.java | 36 String oid, in X509Attribute() argument 39 this.attr = new Attribute(new DERObjectIdentifier(oid), new DERSet(value)); in X509Attribute() 50 String oid, in X509Attribute() argument 53 this.attr = new Attribute(new DERObjectIdentifier(oid), new DERSet(value)); in X509Attribute()
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/cms/ |
D | AttributeTable.java | 45 DERObjectIdentifier oid, in addAttribute() argument 48 Object value = attributes.get(oid); in addAttribute() 52 attributes.put(oid, a); in addAttribute() 72 attributes.put(oid, v); in addAttribute() 83 DERObjectIdentifier oid) in get() argument 85 Object value = attributes.get(oid); in get() 103 DERObjectIdentifier oid) in getAll() argument 107 Object value = attributes.get(oid); in getAll()
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/x509/ |
D | Extensions.java | 143 String oid = extn.getExtnID(); in makeOidsLists() local 145 if (!SUPPORTED_CRITICAL.contains(oid)) { in makeOidsLists() 148 critical.add(oid); in makeOidsLists() 150 noncritical.add(oid); in makeOidsLists() 160 public Extension getExtensionByOID(String oid) { in getExtensionByOID() argument 172 return (Extension) oidMap.get(oid); in getExtensionByOID() 350 String oid = extn.getExtnID(); in addExtension() local 352 if (!SUPPORTED_CRITICAL.contains(oid)) { in addExtension() 355 critical.add(oid); in addExtension() 357 noncritical.add(oid); in addExtension()
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/asn1/pkcs/ |
D | SafeBag.java | 20 DERObjectIdentifier oid, in SafeBag() argument 23 this.bagId = oid; in SafeBag() 29 DERObjectIdentifier oid, in SafeBag() argument 33 this.bagId = oid; in SafeBag()
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/interfaces/ |
D | PKCS12BagAttributeCarrier.java | 14 DERObjectIdentifier oid, in setBagAttribute() argument 18 DERObjectIdentifier oid); in getBagAttribute() argument
|