Interface ICanProvideSecurityMetadataForType

Namespace
Cratis.Chronicle.Confidentiality
Assembly
Cratis.Chronicle.dll

Defines a provider of SecurityMetadata for types.

public interface ICanProvideSecurityMetadataForType
Extension Methods

Remarks

This is the security counterpart to ICanProvideComplianceMetadataForType - a deliberately separate interface, discovered separately, so a security metadata provider never ends up in a compliance metadata resolver's provider pool or vice versa.

Methods

CanProvide(Type)

Checks whether or not it can provide for the type.

bool CanProvide(Type type)

Parameters

type Type

Type to check for.

Returns

bool

True if it can provide, false if not.

Provide(Type)

Provide the metadata for the type.

SecurityMetadata Provide(Type type)

Parameters

type Type

Type to provide for.

Returns

SecurityMetadata

Provided SecurityMetadata.