Class ThreadAwareSecurityManager

java.lang.Object
java.lang.SecurityManager
org.apache.cassandra.security.ThreadAwareSecurityManager

public final class ThreadAwareSecurityManager extends SecurityManager
Custom SecurityManager and Policy implementation that only performs access checks if explicitly enabled.

This implementation gives no measurable performance penalty (see see cstar test). This is better than the penalty of 1 to 3 percent using a standard SecurityManager with an allow all policy.