/** * Encode value into buffer. * @param buffer * @param value * @throws IOException */ public static void encode(ByteBuffer buffer, Asn1Type value) throws IOException { value.encode(buffer); }
/** * Encode value into buffer. * @param buffer * @param value * @throws IOException */ public static void encode(ByteBuffer buffer, Asn1Type value) throws IOException { value.encode(buffer); }
/** * Encode value and return the result. * @param value * @return * @throws IOException */ public static byte[] encode(Asn1Type value) throws IOException { return value.encode(); }
/** * Encode value and return the result. * @param value * @return * @throws IOException */ public static byte[] encode(Asn1Type value) throws IOException { return value.encode(); }
@Override protected void encodeBody(ByteBuffer buffer) throws IOException { List<Asn1Type> valueItems = getValue(); for (Asn1Type item : valueItems) { if (item != null) { item.encode(buffer); } } }
public static byte[] encode(Asn1Type krbObj) throws KrbException { try { return krbObj.encode(); } catch (IOException e) { throw new KrbException("encode failed", e); } }
public static void encode(Asn1Type krbObj, ByteBuffer buffer) throws KrbException { try { krbObj.encode(buffer); } catch (IOException e) { throw new KrbException("Encoding failed", e); } }
public static void encode(Asn1Type krbObj, ByteBuffer buffer) throws KrbException { try { krbObj.encode(buffer); } catch (IOException e) { throw new KrbException("Encoding failed", e); } }
@Override protected void encodeBody(ByteBuffer buffer) throws IOException { List<Asn1Type> valueItems = getValue(); for (Asn1Type item : valueItems) { if (item != null) { item.encode(buffer); } } }
public static byte[] encode(Asn1Type krbObj) throws KrbException { try { return krbObj.encode(); } catch (IOException e) { throw new KrbException("encode failed", e); } }
@Override protected void encodeBody(ByteBuffer buffer) throws IOException { for (int i = 0; i < fields.length; ++i) { Asn1Type field = fields[i]; if (field != null) { if (fieldInfos[i].isTagged()) { TaggingOption taggingOption = fieldInfos[i].getTaggingOption(); field.taggedEncode(buffer, taggingOption); } else { field.encode(buffer); } } } }
@Override protected void encodeBody(ByteBuffer buffer) throws IOException { for (int i = 0; i < fields.length; ++i) { Asn1Type field = fields[i]; if (field != null) { if (fieldInfos[i].isTagged()) { TaggingOption taggingOption = fieldInfos[i].getTaggingOption(); field.taggedEncode(buffer, taggingOption); } else { field.encode(buffer); } } } }