DOFPermission ClassOpenDOF Object Access Library
This class represents a permission.
Inheritance Hierarchy

SystemObject
  org.opendof.core.oal.securityDOFPermission
    More...

Namespace: org.opendof.core.oal.security
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
[SerializableAttribute]
public abstract class DOFPermission : DOFImmutable

The DOFPermission type exposes the following members.

Constructors

  NameDescription
Protected methodDOFPermission
Initializes a new instance of the DOFPermission class
Top
Methods

  NameDescription
Public methodStatic memberaddFactory
Add a new DOFPermissionFactory that can be used to create permissions from serialized form.
Public methodStatic membercreate(Byte)
Creates and returns a Permission object of the correct type from a byte array of data.
Public methodStatic membercreate(DOFMarshalContext, DOFPacket)
Creates and returns a Permission object of the correct type by removing it from the front of a BufferedPacket.
Public methodEquals (Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodgetBytes
Get the serialized bytes of the permission.
Public methodgetComplement
Return the complement permission for this permission.
Public methodGetHashCode (Overrides ObjectGetHashCode.)
Public methodgetPermissionType
Returns the type of the permission.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodisAllowedBy(DOFPermission)
Returns whether or not this Permission is a subset of the permissions allowed by the specified Permission.
Public methodisAllowedBy(DOFPermissionSet)
Returns whether or not this permission is a subset of the permissions allowed by the specified permission set.
Public methodisExplicit
Returns whether or not this permission is considered explicit.
Public methodisIntersection
Returns whether or not this permission has an intersection with the specified permission.
Public methodisTerminal
Returns whether or not this permission is a terminal permission.
Public methodmarshal

This method is not used for custom permissions.

Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodnormalize
Normalize this permission.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberACT_AS
The "I am" permission is implemented in ActAs .
Public fieldStatic memberBINDING
The binding permission is implemented in Binding .
Public fieldStatic memberDEFINE
The define permission is implemented in Define .
Public fieldStatic memberI_AM
The "I am" permission is implemented in IAm .
Public fieldStatic memberPROVIDER
The provider permission is implemented in Provider .
Public fieldStatic memberREQUESTOR
The requestor permission is implemented in Requestor .
Public fieldStatic memberTUNNEL_DOMAIN
The tunnel domain permission is implemented in TunnelDomain .
Top
Remarks

This class represents a permission. Custom permissions that extend this should implement all abstract methods and register a Factory implementation. A default hashCode() and equals() implementation is provided, but should be overridden for each custom permission.
See Also

Reference

Inheritance Hierarchy

SystemObject
  org.opendof.core.oal.securityDOFPermission
    org.opendof.core.oal.securityDOFPermissionActAs
    org.opendof.core.oal.securityDOFPermissionActAsAny
    org.opendof.core.oal.securityDOFPermissionBinding
    org.opendof.core.oal.securityDOFPermissionDefine
    org.opendof.core.oal.securityDOFPermissionIAm
    org.opendof.core.oal.securityDOFPermissionProvider
    org.opendof.core.oal.securityDOFPermissionRequestor
    org.opendof.core.oal.securityDOFPermissionTunnelDomain
    org.opendof.core.oal.securityDOFPermissionUnknown