@Test public void testOidToString() { byte[] data1 = { 0x06, 0x08, 0x2A, (byte) 0x86, 0x48, (byte) 0xCE, 0x3D, 0x03, 0x01, 0x07 }; String oid1 = Asn1DerDecoder.readOidString(new DatagramReader(data1, false)); assertThat(oid1, is("1.2.840.10045.3.1.7")); byte[] data2 = { 0x06, 0x07, 0x2A, (byte) 0x86, 0x48, (byte) 0xCE, 0x3D, 0x02, 0x01 }; String oid2 = Asn1DerDecoder.readOidString(new DatagramReader(data2, false)); assertThat(oid2, is("1.2.840.10045.2.1")); }
public static String readOidString(final DatagramReader reader) { byte[] oid = OID.readValue(reader); return OID.toString(oid); }
Asn1DerDecoder { public static String readOidString(final DatagramReader reader) { byte[] oid = OID.readValue(reader); return OID.toString(oid); } }
Asn1DerDecoder { public static String readOidString(final DatagramReader reader) { byte[] oid = OID.readValue(reader); return OID.toString(oid); }  }
Asn1DerDecoder { public static String readOidString(final DatagramReader reader) { byte[] oid = OID.readValue(reader); return OID.toString(oid); }  static Provider getEdDsaProvider(); static boolean isSupported(String algorithm); static byte[] readSequenceEntity(final DatagramReader reader); static byte[] readSequenceValue(final DatagramReader reader); static byte[] readOidValue(final DatagramReader reader); static String readOidString(final DatagramReader reader); static String readSubjectPublicKeyAlgorithm(final byte[] data); static PublicKey readSubjectPublicKey(final byte[] data); static String readPrivateKeyAlgorithm(final byte[] data); static Keys readPrivateKey(final byte[] data); static Keys readEcPrivateKeyV2(final byte[] data); static ECPublicKey readEcPublicKey(DatagramReader reader, ECParameterSpec ecParameterSpec); static PrivateKey ensureEdDsaPrivateKeyProvider(PrivateKey privateKey); static boolean equalKeyAlgorithmSynonyms(String keyAlgorithm1, String keyAlgorithm2); static ECParameterSpec getECParameterSpec(String oid); static String getEdDsaStandardAlgorithmName(String algorithm, String def); }
Asn1DerDecoder { public static String readOidString(final DatagramReader reader) { byte[] oid = OID.readValue(reader); return OID.toString(oid); }  static Provider getEdDsaProvider(); static boolean isSupported(String algorithm); static byte[] readSequenceEntity(final DatagramReader reader); static byte[] readSequenceValue(final DatagramReader reader); static byte[] readOidValue(final DatagramReader reader); static String readOidString(final DatagramReader reader); static String readSubjectPublicKeyAlgorithm(final byte[] data); static PublicKey readSubjectPublicKey(final byte[] data); static String readPrivateKeyAlgorithm(final byte[] data); static Keys readPrivateKey(final byte[] data); static Keys readEcPrivateKeyV2(final byte[] data); static ECPublicKey readEcPublicKey(DatagramReader reader, ECParameterSpec ecParameterSpec); static PrivateKey ensureEdDsaPrivateKeyProvider(PrivateKey privateKey); static boolean equalKeyAlgorithmSynonyms(String keyAlgorithm1, String keyAlgorithm2); static ECParameterSpec getECParameterSpec(String oid); static String getEdDsaStandardAlgorithmName(String algorithm, String def); static final String EC; static final String RSA; static final String DSA; static final String DH; static final String ECv2; static final String ED25519; static final String ED448; static final String OID_ED25519; static final String OID_ED448; static final String EDDSA; static final int EC_PUBLIC_KEY_UNCOMPRESSED; }