Interface ISecurityMetadataResolver
- Namespace
- Cratis.Chronicle.Confidentiality
- Assembly
- Cratis.Chronicle.dll
Defines a resolver of SecurityMetadata for types and properties.
public interface ISecurityMetadataResolver
- Extension Methods
Remarks
This is the security counterpart to IComplianceMetadataResolver - a deliberately separate resolver over a deliberately separate provider pool, so a schema's security classification can never be a side effect of its compliance providers, or the other way around.
Methods
GetMetadataFor(PropertyInfo)
Get the SecurityMetadata associated with a PropertyInfo.
IEnumerable<SecurityMetadata> GetMetadataFor(PropertyInfo property)
Parameters
propertyPropertyInfoPropertyInfo to get for.
Returns
- IEnumerable<SecurityMetadata>
Collection of SecurityMetadata associated with the type.
GetMetadataFor(Type)
Get the SecurityMetadata associated with a Type.
IEnumerable<SecurityMetadata> GetMetadataFor(Type type)
Parameters
Returns
- IEnumerable<SecurityMetadata>
Collection of SecurityMetadata associated with the type.
HasMetadataFor(PropertyInfo)
Check whether or not a specific PropertyInfo has any SecurityMetadata associated with it.
bool HasMetadataFor(PropertyInfo property)
Parameters
propertyPropertyInfoPropertyInfo to check.
Returns
- bool
True if it has, false if not.
HasMetadataFor(Type)
Check whether or not a specific Type has any SecurityMetadata associated with it.
bool HasMetadataFor(Type type)
Parameters
Returns
- bool
True if it has, false if not.