public static boolean isSecurityManagerTypeOf(SecurityManager securityManager,
                                                  Class<? extends SecurityManager> type) {
        return type.isAssignableFrom(unwrapSecurityManager(securityManager, type).getClass());
    }
Determines if the specified security manager is of the specified type or a subclass of the specified type.

@param securityManager
@param type
@return true if the security manager is of the specified type or a subclass of the specified type, false otherwise.
core/src/main/java/org/apache/shiro/SecurityUtils.java