Class AbstractRecipeClient

    • Field Detail

      • addressKey

        protected final String addressKey
      • responseKey

        protected be.recipe.api.crypto.Message.Cipher.Key responseKey
      • systemKey

        protected be.recipe.api.crypto.Message.Cipher.Key systemKey
      • cipher

        protected be.recipe.api.crypto.Message.Cipher cipher
      • address

        protected String address
      • traceId

        public java8.util.function.Supplier<String> traceId
      • captureTraceId

        public java8.util.function.Consumer<String> captureTraceId
    • Constructor Detail

      • AbstractRecipeClient

        public AbstractRecipeClient​(String addressKey)
      • AbstractRecipeClient

        public AbstractRecipeClient​(String addressKey,
                                    be.recipe.api.crypto.Message.Cipher.Key.DB<be.recipe.api.Prescription.OnContent> keyRegistry,
                                    be.recipe.api.crypto.Message.Cipher cipher,
                                    java8.util.function.Supplier<String> traceId)
      • AbstractRecipeClient

        public AbstractRecipeClient​(String addressKey,
                                    be.recipe.api.crypto.Message.Cipher.Key.DB<be.recipe.api.Prescription.OnContent> keyRegistry,
                                    be.recipe.api.crypto.Message.Cipher cipher,
                                    PropertyHandler properties)
    • Method Detail

      • toLocalDateTime

        protected static org.threeten.bp.LocalDateTime toLocalDateTime​(Calendar calendar)
      • toLocalDate

        protected static org.threeten.bp.LocalDate toLocalDate​(Calendar calendar)
      • toName

        protected static java8.util.function.Function<Enum,​String> toName()
      • toLowerCase

        protected static java8.util.function.Function<String,​String> toLowerCase()
      • toText

        protected static java8.util.function.Function<Object,​String> toText()
      • initEncryption

        public void initEncryption​(EncryptionUtils encryptionUtils)
      • encrypt

        protected <T> byte[] encrypt​(T it)
      • decrypt

        protected <T> T decrypt​(byte[] bytes,
                                Class<T> type)
      • rejected

        protected boolean rejected​(StatusType status)
      • programId

        protected String programId()
      • programId

        public static String programId​(String defaultPrefix)
      • withExceptionHandling

        protected <T> T withExceptionHandling​(String code,
                                              java8.util.function.Supplier<T> task)