CbfSecurityManager

The security manager is responsible for controlling the creation of serializers.

For example, in environments with a plugin system, the security manager can be used to prevent plugins from registering serializers for third-party types, preventing multiple serializers with different formats from existing.

Functions

Link copied to clipboard
abstract fun <T : Any> isAllowed(type: KType, serializer: BinarySerializer<T>): Boolean

Checks whether the given serializer for type is allowed to be registered.