Interface IXLProtectable<TProtection, TElement>
public interface IXLProtectable<TProtection, in TElement> : IXLProtectable where TProtection : IXLElementProtection<in TElement> where TElement : struct
Type Parameters
TProtectionTElement
- Inherited Members
- Extension Methods
Properties
Protection
TProtection Protection { get; set; }
Property Value
- TProtection
Methods
Protect(Algorithm)
Protects this instance without a password.
TProtection Protect(XLProtectionAlgorithm.Algorithm algorithm = Algorithm.SimpleHash)
Parameters
algorithmXLProtectionAlgorithm.Algorithm
Returns
- TProtection
Protect(Algorithm, TElement)
Protects this instance with the specified password, password hash algorithm and set elements that the user is allowed to change.
TProtection Protect(XLProtectionAlgorithm.Algorithm algorithm, TElement allowedElements)
Parameters
algorithmXLProtectionAlgorithm.AlgorithmThe algorithm.
allowedElementsTElementThe allowed elements.
Returns
- TProtection
Protect(string, Algorithm)
Protects this instance using the specified password and password hash algorithm.
TProtection Protect(string password, XLProtectionAlgorithm.Algorithm algorithm = Algorithm.SimpleHash)
Parameters
passwordstringThe password.
algorithmXLProtectionAlgorithm.AlgorithmThe algorithm.
Returns
- TProtection
Protect(string, Algorithm, TElement)
Protects this instance with the specified password, password hash algorithm and set elements that the user is allowed to change.
TProtection Protect(string password, XLProtectionAlgorithm.Algorithm algorithm, TElement allowedElements)
Parameters
passwordstringThe password.
algorithmXLProtectionAlgorithm.AlgorithmThe algorithm.
allowedElementsTElementThe allowed elements.
Returns
- TProtection
Protect(TElement)
Protects this instance without a password.
TProtection Protect(TElement allowedElements)
Parameters
allowedElementsTElement
Returns
- TProtection
Unprotect()
Unprotects this instance without a password.
TProtection Unprotect()
Returns
- TProtection
Unprotect(string)
Unprotects this instance using the specified password.
TProtection Unprotect(string password)
Parameters
passwordstringThe password.
Returns
- TProtection