Home
last modified time | relevance | path

Searched refs:targetType (Results 1 – 2 of 2) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1BerParser.java592 Class<T> targetType) throws Asn1DecodingException { in convert() argument
593 if (ByteBuffer.class.equals(targetType)) { in convert()
595 } else if (byte[].class.equals(targetType)) { in convert()
603 } else if (Asn1OpaqueObject.class.equals(targetType)) { in convert()
609 if ((int.class.equals(targetType)) || (Integer.class.equals(targetType))) { in convert()
611 } else if ((long.class.equals(targetType)) || (Long.class.equals(targetType))) { in convert()
613 } else if (BigInteger.class.equals(targetType)) { in convert()
618 if (String.class.equals(targetType)) { in convert()
624 if (String.class.equals(targetType)) { in convert()
631 if (boolean.class.equals(targetType)) { in convert()
[all …]
DAsn1DerEncoder.java502 public static byte[] toDer(Object source, Asn1Type targetType, Asn1Type targetElementType) in toDer() argument
512 if ((targetType == null) || (targetType == Asn1Type.ANY)) { in toDer()
516 switch (targetType) { in toDer()
531 BerEncoding.getTagNumber(targetType), in toDer()
553 BerEncoding.getTagNumber(targetType), ((String) source).getBytes()); in toDer()
590 "Unsupported conversion: " + sourceType.getName() + " to ASN.1 " + targetType); in toDer()