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 add custom data to the map.
  • Method Details

    • getCustomData

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

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

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

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