Package org.webpki.cbor
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 TypeMethodDescriptiondefault CBORObject
Optionally add custom data to the map.default CBORObject
Optionally wrap a map in a tag.
-
Method Details
-
wrap
Optionally wrap a map in a tag.See also
CBORTag
for details on the syntax for wrapped CBOR data.- Parameters:
map
- Unwrapped map- Returns:
- Original (default implementation) or wrapped map
-
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.
-