Class SdkEncodable

    • Constructor Detail

      • SdkEncodable

        public SdkEncodable()
    • Method Detail

      • encode0

        protected abstract void encode0​(org.xipki.util.cbor.CborEncoder encoder)
                                 throws IOException,
                                        org.xipki.util.exception.EncodeException
        Throws:
        IOException
        org.xipki.util.exception.EncodeException
      • encode

        public final void encode​(org.xipki.util.cbor.CborEncoder encoder)
                          throws org.xipki.util.exception.EncodeException
        Specified by:
        encode in interface org.xipki.util.cbor.CborEncodable
        Throws:
        org.xipki.util.exception.EncodeException
      • encode

        public byte[] encode()
                      throws org.xipki.util.exception.EncodeException
        Throws:
        org.xipki.util.exception.EncodeException
      • assertArrayStart

        protected static void assertArrayStart​(String name,
                                               org.xipki.util.cbor.CborDecoder decoder,
                                               int size)
                                        throws IOException,
                                               org.xipki.util.exception.DecodeException
        Throws:
        IOException
        org.xipki.util.exception.DecodeException
      • buildDecodeErrMessage

        protected static String buildDecodeErrMessage​(Exception ex,
                                                      Class<?> clazz)
                                               throws org.xipki.util.exception.DecodeException
        Throws:
        org.xipki.util.exception.DecodeException