com.alachisoft.ncache.security.OperationCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-security Show documentation
Show all versions of nc-security Show documentation
Internal package of Alachisoft.
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