Interface CBORCryptoUtils.Intercepter

Enclosing class:
CBORCryptoUtils

public static interface CBORCryptoUtils.Intercepter
Interface for customizing map objects.

Implementations of this interface must be set by calling CBORSigner.setIntercepter(Intercepter) and CBOREncrypter.setIntercepter(Intercepter) for signatures and encryption respectively.

  • Method Summary

    Modifier and Type
    Method
    Description
    default CBORObject
    Optionally adds custom data to the map.
    default CBORObject
    Optionally wraps a map in a tag.
  • Method Details

    • wrap

      default CBORObject wrap(CBORMap map)
      Optionally wraps a map in a tag.

      Also see CBORTag for details on the syntax for wrapped CBOR data.

      Parameters:
      map - Unwrapped map
      Returns:
      Original (default implementation) or wrapped map
    • getCustomData

      default CBORObject getCustomData()
      Optionally adds custom data to the map.

      Custom data may be any valid CBOR object. This data is assigned to the CSF/CEF specific label CBORCryptoConstants.CUSTOM_DATA_LABEL.

      If this method returns null, the assumption is that there is no custom data.

      Returns:
      null (default implementation) or custom data object.