Interface ObjectWithMetadata

All Known Implementing Classes:
AuthenticationFailedException, AuthRequestDTO, EkycAuthRequestDTO, IdAuthenticationAppException, IdAuthenticationBaseException, IdAuthenticationBusinessException, IdAuthenticationDaoException, IDAuthenticationUnknownException, IDDataValidationException, IdentityDTO, IdentityKeyBindingRequestDTO, IdValidationFailedException, KycAuthRequestDTO, KycExchangeRequestDTO, OtpRequestDTO, RetryingBeforeRetryIntervalException, SecurityFailedException, ServiceTimeoutException, VciExchangeRequestDTO

public interface ObjectWithMetadata
The Interface ObjectWithMetadata - base interface for objects with metadata.
Author:
Loganathan Sekar
  • Method Details

    • getMetadata

      Map<String,Object> getMetadata()
      Gets the metadata.
      Returns:
      the metadata
    • setMetadata

      void setMetadata(Map<String,Object> metadata)
      Sets the metadata.
      Parameters:
      metadata - the metadata
    • putMetadata

      default void putMetadata(String key, Object data)
      Put metadata.
      Parameters:
      key - the key
      data - the data
    • putAllMetadata

      default void putAllMetadata(Map<String,Object> metadata)
      Put all metadata.
      Parameters:
      metadata - the metadata
    • getMetadata

      default Optional<Object> getMetadata(String key)
      Gets the metadata.
      Parameters:
      key - the key
      Returns:
      the metadata
    • getMetadata

      default <T> Optional<T> getMetadata(String key, Class<T> clazz)
      Gets the metadata.
      Type Parameters:
      T - the generic type
      Parameters:
      key - the key
      clazz - the clazz
      Returns:
      the metadata
    • copyMetadataTo

      default void copyMetadataTo(ObjectWithMetadata target, String key)
      Copy metadata to.
      Parameters:
      target - the target
      key - the key
    • copyAllMetadaTo

      default void copyAllMetadaTo(ObjectWithMetadata target)
      Copy all metada to.
      Parameters:
      target - the target