All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.ncache.security.OperationCode Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
package com.alachisoft.ncache.security;

/**
 * The  namespace supplies classes and interfaces that ensure
 * secure usage of caches. This assembly provides two levels of security. API level security and Node level security.
 * This assembly gets all necessary information from security.conf file.It authenticates/authorizes user
 * credentials supplied by user with information in Active Directory by using the LDAP (Lightweight Directory Access Protocol).
 * if credentials were found wrong a SecurityException is thrown. Normal users are allowed to perform cache operations
 * at API level (adding,updating,removing items etc) for specific Cache-Id.Administrators are allowed to perform administrative
 * operation (start,stop,create,add node,remove node from cluster etc) and are also allowed to perform Cache operations
 * at API level for all Caches.
 */
public enum OperationCode {
    Default, //We pass this code with Node-Level security.
    InitCache,
    StartCache,
    StopCache;

    public static OperationCode forValue(int value) {
        return values()[value];
    }

    public int getValue() {
        return this.ordinal();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy