SecurityServices for .NET 2.0 Documentation

SmartcardPermissionMethods

The methods of the SmartcardPermission class are listed below. For a complete list of SmartcardPermission class members, see the SmartcardPermission Members topic.

Public Instance Methods

AddAllowedAtr Adds an ATR to the allowed list.
AddAllowedAtrs Adds an array of ATRs to the allowed list.
Assert (inherited from CodeAccessPermission)Declares that the calling code can access the resource protected by a permission demand through the code that calls this method, even if callers higher in the stack have not been granted permission to access the resource. Using Assert can create security issues.
Copy Creates and returns an identical copy of the current permission.
Demand (inherited from CodeAccessPermission)Forces a SecurityException at run time if all callers higher in the call stack have not been granted the permission specified by the current instance.
Deny (inherited from CodeAccessPermission)Prevents callers higher in the call stack from using the code that calls this method to access the resource specified by the current instance.
Equals (inherited from CodeAccessPermission)Determines whether the specified CodeAccessPermission object is equal to the current CodeAccessPermission.
FromXml Reconstructs a permission with a specified state from an XML encoding.
GetAllowedAtrs Gets a list of the allowed ATRs.
GetHashCode (inherited from CodeAccessPermission)Gets a hash code for the CodeAccessPermission object that is suitable for use in hashing algorithms and data structures such as a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
Intersect Creates and returns a permission that is the intersection of the current permission and the specified permission.
IsEmpty Retruns a value indicating whether the current permission is empty.
IsSubsetOf Determines whether the current permission is a subset of the specified permission.
IsUnrestricted Returns a value indicating whether the current permission is unrestricted.
PermitOnly (inherited from CodeAccessPermission)Prevents callers higher in the call stack from using the code that calls this method to access all resources except for the resource specified by the current instance.
ToString (inherited from CodeAccessPermission)Creates and returns a string representation of the current permission object.
ToXml Creates an XML encoding of the permission and its current state.
Union Creates a permission that is the union of the current permission and the specified permission.

See Also

SmartcardPermission Class | Org.Mentalis.SecurityServices.Permissions Namespace