JNative v1.3 project : see http://jnative.sf.net


org.xvolks.jnative.util
Enum Kernel32.AccessMask

java.lang.Object
  extended by java.lang.Enum<Kernel32.AccessMask>
      extended by org.xvolks.jnative.util.Kernel32.AccessMask
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Kernel32.AccessMask>
Enclosing class:
Kernel32

public static enum Kernel32.AccessMask
extends java.lang.Enum<Kernel32.AccessMask>

The specific rights (bits 0 to 15). Depend on the type of the object being secured by the ACE. Specific rights for files and directories are as follows:


Enum Constant Summary
ACCESS_SYSTEM_SECURITY
          The access system ACL and maximum allowed access types (bits 24 to 25, bits 26 to 27 are reserved).
DELETE
          Right to delete the object.
FILE_ADD_FILE
          Right to create a file in the directory.
FILE_ADD_SUBDIRECTORY
          Right to create a subdirectory.
FILE_APPEND_DATA
          Right to append data to the file.
FILE_DELETE_CHILD
          Right to delete a directory and all the files it contains (its children), even if the files are read-only.
FILE_EXECUTE
          Right to execute a file.
FILE_LIST_DIRECTORY
          Right to list contents of a directory.
FILE_READ_ATTRIBUTES
          Right to read file attributes.
FILE_READ_DATA
          Right to read data from the file.
FILE_READ_EA
          Right to read extended attributes.
FILE_TRAVERSE
          Right to traverse the directory.
FILE_WRITE_ATTRIBUTES
          Right to change file attributes.
FILE_WRITE_DATA
          Right to write data to the file.
FILE_WRITE_EA
          Right to write extended attributes.
GENERIC_ALL
          Read, write, and execute access.
GENERIC_EXECUTE
          Execute access.
GENERIC_READ
          Read access.
GENERIC_WRITE
          Write access.
MAXIMUM_ALLOWED
           
READ_CONTROL
          Right to read the information in the object's security descriptor, not including the information in the SACL.
STANDARD_RIGHTS_ALL
          Combines DELETE, READ_CONTROL, WRITE_DAC, WRITE_OWNER, and SYNCHRONIZE access.
STANDARD_RIGHTS_EXECUTE
           
STANDARD_RIGHTS_READ
          These are currently defined to READ_CONTROL.
STANDARD_RIGHTS_REQUIRED
          Combines DELETE, READ_CONTROL, WRITE_DAC, and WRITE_OWNER access.
STANDARD_RIGHTS_WRITE
           
SYNCHRONIZE
          Right to use the object for synchronization.
WRITE_DAC
          Right to modify the DACL in the object's security descriptor.
WRITE_OWNER
          Right to change the owner in the object's security descriptor.
 
Method Summary
 int getValue()
           
static Kernel32.AccessMask valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Kernel32.AccessMask[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FILE_READ_DATA

public static final Kernel32.AccessMask FILE_READ_DATA
Right to read data from the file. (FILE)


FILE_LIST_DIRECTORY

public static final Kernel32.AccessMask FILE_LIST_DIRECTORY
Right to list contents of a directory. (DIRECTORY)


FILE_WRITE_DATA

public static final Kernel32.AccessMask FILE_WRITE_DATA
Right to write data to the file. (FILE)


FILE_ADD_FILE

public static final Kernel32.AccessMask FILE_ADD_FILE
Right to create a file in the directory. (DIRECTORY)


FILE_APPEND_DATA

public static final Kernel32.AccessMask FILE_APPEND_DATA
Right to append data to the file. (FILE)


FILE_ADD_SUBDIRECTORY

public static final Kernel32.AccessMask FILE_ADD_SUBDIRECTORY
Right to create a subdirectory. (DIRECTORY)


FILE_READ_EA

public static final Kernel32.AccessMask FILE_READ_EA
Right to read extended attributes. (FILE/DIRECTORY)


FILE_WRITE_EA

public static final Kernel32.AccessMask FILE_WRITE_EA
Right to write extended attributes. (FILE/DIRECTORY)


FILE_EXECUTE

public static final Kernel32.AccessMask FILE_EXECUTE
Right to execute a file. (FILE)


FILE_TRAVERSE

public static final Kernel32.AccessMask FILE_TRAVERSE
Right to traverse the directory. (DIRECTORY)


FILE_DELETE_CHILD

public static final Kernel32.AccessMask FILE_DELETE_CHILD
Right to delete a directory and all the files it contains (its children), even if the files are read-only. (DIRECTORY)


FILE_READ_ATTRIBUTES

public static final Kernel32.AccessMask FILE_READ_ATTRIBUTES
Right to read file attributes. (FILE/DIRECTORY)


FILE_WRITE_ATTRIBUTES

public static final Kernel32.AccessMask FILE_WRITE_ATTRIBUTES
Right to change file attributes. (FILE/DIRECTORY)


DELETE

public static final Kernel32.AccessMask DELETE
Right to delete the object.


READ_CONTROL

public static final Kernel32.AccessMask READ_CONTROL
Right to read the information in the object's security descriptor, not including the information in the SACL. I.e. right to read the security descriptor and owner.


WRITE_DAC

public static final Kernel32.AccessMask WRITE_DAC
Right to modify the DACL in the object's security descriptor.


WRITE_OWNER

public static final Kernel32.AccessMask WRITE_OWNER
Right to change the owner in the object's security descriptor.


SYNCHRONIZE

public static final Kernel32.AccessMask SYNCHRONIZE
Right to use the object for synchronization. Enables a process to wait until the object is in the signalled state. Some object types do not support this access right.


STANDARD_RIGHTS_READ

public static final Kernel32.AccessMask STANDARD_RIGHTS_READ
These are currently defined to READ_CONTROL.


STANDARD_RIGHTS_WRITE

public static final Kernel32.AccessMask STANDARD_RIGHTS_WRITE

STANDARD_RIGHTS_EXECUTE

public static final Kernel32.AccessMask STANDARD_RIGHTS_EXECUTE

STANDARD_RIGHTS_REQUIRED

public static final Kernel32.AccessMask STANDARD_RIGHTS_REQUIRED
Combines DELETE, READ_CONTROL, WRITE_DAC, and WRITE_OWNER access.


STANDARD_RIGHTS_ALL

public static final Kernel32.AccessMask STANDARD_RIGHTS_ALL
Combines DELETE, READ_CONTROL, WRITE_DAC, WRITE_OWNER, and SYNCHRONIZE access.


ACCESS_SYSTEM_SECURITY

public static final Kernel32.AccessMask ACCESS_SYSTEM_SECURITY
The access system ACL and maximum allowed access types (bits 24 to 25, bits 26 to 27 are reserved).


MAXIMUM_ALLOWED

public static final Kernel32.AccessMask MAXIMUM_ALLOWED

GENERIC_ALL

public static final Kernel32.AccessMask GENERIC_ALL
Read, write, and execute access.


GENERIC_EXECUTE

public static final Kernel32.AccessMask GENERIC_EXECUTE
Execute access.


GENERIC_WRITE

public static final Kernel32.AccessMask GENERIC_WRITE
Write access. For files, this maps onto: FILE_APPEND_DATA | FILE_WRITE_ATTRIBUTES | FILE_WRITE_DATA | FILE_WRITE_EA | STANDARD_RIGHTS_WRITE | SYNCHRONIZE For directories, the mapping has the same numberical value. See above for the descriptions of the rights granted.


GENERIC_READ

public static final Kernel32.AccessMask GENERIC_READ
Read access. For files, this maps onto: FILE_READ_ATTRIBUTES | FILE_READ_DATA | FILE_READ_EA | STANDARD_RIGHTS_READ | SYNCHRONIZE For directories, the mapping has the same numberical value. See above for the descriptions of the rights granted.

Method Detail

values

public static Kernel32.AccessMask[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for(Kernel32.AccessMask c : Kernel32.AccessMask.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Kernel32.AccessMask valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getValue

public int getValue()

JNative v1.3 project : see http://jnative.sf.net